Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > LimeWire Beta Archives
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts


 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 14th, 2005
Clock's Avatar
Apprentice
 
Join Date: June 14th, 2005
Posts: 5
Clock is flying high
Default Use Aspack or Upx on Limewire

If you use the compression on the dynamic link liberies
and the main executable file your app will have an
performance increase and smaller download and
less memory consumption for users. It
will also help to curb reverse enginering

Just a little idea..

If anyone here has a copy of these special compression
tools for programmers they will know what i am on
about. I found a performance increase already.
(not a line of your code is edited, its simply
a nice optimization process)

Last edited by Clock; June 14th, 2005 at 07:18 AM.
  #2 (permalink)  
Old June 14th, 2005
Clock's Avatar
Apprentice
 
Join Date: June 14th, 2005
Posts: 5
Clock is flying high
Default

Upx Download here

http://upx.sourceforge.net/#download

UPX is a versatile executable packer with the following features:
excellent compression ratio: typically compresses better than WinZip/zip/gzip, use UPX to decrease the size of your distribution ! very fast decompression: ~10 MB/sec on an ancient Pentium 133, ~200 MB/sec on an Athlon XP 2000+.
no memory overhead for your compressed executables because of in-place decompression. safe: you can list, test and unpack your executables. Also, a checksum of both the compressed and uncompressed file is maintained internally.

Quick tip.. Copy the upx.exe in the program directory, goto
the dos prompt and type upx *.dll

Upx cannot the program exe for this software, though
normally you can.

So to maximize the process or if you want a commercial
alternative to do dll's and exe's use Aspack

Asp Pack

http://www.snapfiles.com/get/aspack.html

ASPack is an advanced Win32 executable file compressor, capable of reducing the file size of 32-bit Windows programs by as much as 70%. (ASPack's compression ratio improves upon the industry-standard zip file format by as much as 10-20%. and it
requires no unzipping!)
  #3 (permalink)  
Old June 14th, 2005
Valued Member contributor
 
Join Date: August 10th, 2003
Location: In the middle of nowhere (54°N 10°E)
Posts: 318
rkapsi is flying high
Default

LimeWire is written in Java.
  #4 (permalink)  
Old June 14th, 2005
Clock's Avatar
Apprentice
 
Join Date: June 14th, 2005
Posts: 5
Clock is flying high
Default

Its only partly written in java.. what drives the
front end is executables and liberies

ie check your install directory

limewire.exe
genericwindowsutils.dll
limewire20.dll
windowsv5plusutils.dll
  #5 (permalink)  
Old June 14th, 2005
Software Developer
 
Join Date: November 4th, 2002
Location: New York
Posts: 1,366
sberlin is flying high
Default

What drives the front end is Java code. LimeWire.exe is a rewritten "javaw.exe", and those dlls are just stub helpers, to allow LimeWire to do OS-dependent stuff, like getting the system idle time, or setting a file to be writable, etc. There's about 100 lines of C code (if even that) and hundreds of thousands of lines of Java code.
  #6 (permalink)  
Old June 14th, 2005
I_Have_No_Account
Guest
 
Posts: n/a
Default

So far I've only read nonsense except for "written in Java" in this thread. Continue, please.
  #7 (permalink)  
Old June 14th, 2005
Software Developer
 
Join Date: November 4th, 2002
Location: New York
Posts: 1,366
sberlin is flying high
Default

Also, we're not trying to obfuscate anything. LimeWire is 100% open source. See http://www.limewire.org .
  #8 (permalink)  
Old June 14th, 2005
Clock's Avatar
Apprentice
 
Join Date: June 14th, 2005
Posts: 5
Clock is flying high
Default

dont take it personal.. everyone likes
to tweek for a little more speed.. just thought it
might help - beta programs are supposed to
be about that sort of feedback. I am not disrospecting
your code.
  #9 (permalink)  
Old June 14th, 2005
Software Developer
 
Join Date: November 4th, 2002
Location: New York
Posts: 1,366
sberlin is flying high
Default

Er, who took it personally? "I_Have_No_Account" doesn't work for LimeWire -- I dunno who they are, they have no account.

Optimizing C code will have little to no effect on LimeWire, since barely 0.5% of LimeWire uses C code.
  #10 (permalink)  
Old June 15th, 2005
I_Have_No_Account
Guest
 
Posts: n/a
Default

UPX doesn't make any program faster. The only point of UPX is saving disk space. However, unless you're talking about small portable removable media, the size of your programs is completely unimportant. You won't save a bit of RAM through this. The decompressor takes some overhead, even if it's just a little. The decompressed executable must be kept in RAM or paged to disk. This is unnecessary with an uncompressed executable because it is already on disk. So where's the significant advantage? I don't see one.

As far as I know, Java bytecode is compressed anyway and even if you saved a few percent of RAM by UPX, the amount of memory used by the Java VM ridicules that effort.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.