Reasons why not to use UPX (and other executable compressors

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
slashbeast
Junior Member
Junior Member
Posts: 3
Joined: 2005-06-20, 19:57 UTC

Reasons why not to use UPX (and other executable compressors

Post by *slashbeast »

Reasons why not to use UPX (and other executable compressors).

- more ram usage
- lower performance
- whole code of programm is loaded, not on demand
- it doesn't allow to share memory so code is loaded to memory more than one time

Can I count that next version of TC would be released without compression?
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Well, I would not bet on it.
Yet, as for different reasons - some of which were mentioned by you - people need TC uncompressed, here is the link to the uncompressed TC 6.53 executable:

https://plugins.ghisler.com/img/unpack32_653.exe

You may have a look at the complete thread where I got the link from here:
http://ghisler.ch/board/viewtopic.php?t=6634&highlight=uncompressed

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

slashbeast,
- lower performance
:?:

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nevidimka
Senior Member
Senior Member
Posts: 385
Joined: 2004-06-20, 21:38 UTC

Post by *nevidimka »

2slashbeast
- more ram usage
Not in all cases.
- lower performance
What kind of performance do you mean? Starting the program? Then you have to consider time for harddisk reading and time for unpacking.
- whole code of programm is loaded, not on demand
Only if a program use such techniques.
- it doesn't allow to share memory so code is loaded to memory more than one time
Only important if you start multiple instances.
The doorstep to the temple of wisdom is a knowledge of our own ignorance. Benjamin Franklin
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

What are the (dis-)advantages of using the compression provided by NTFS compared to executable packers and to umcompressed executables (beside the fact that the NTFS compression doesn't result in very small files?
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
You cannot distribute files with NTFS compression.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nevidimka
Senior Member
Senior Member
Posts: 385
Joined: 2004-06-20, 21:38 UTC

Post by *nevidimka »

You cannot distribute files with NTFS compression.
It's possible - it's only a question of your installer.
What are the (dis-)advantages of using the compression provided by NTFS
You cannot use NTFS compression on FAT32 (or other FS).
beside the fact that the NTFS compression doesn't result in very small files
That's the big disadvantage:
TC V6.53
Uncompressed: 2.320.420 Bytes
NTFS: 1.622.016 Bytes
ZIP(TC): 1.101.824 Bytes
UPX: 837.156 Byte
7z (Ultra): 757.685 Bytes (EDIT)

Maybe a 7z-based installer (e.g. Inno-Setup) will be create a smaller installation file.
The doorstep to the temple of wisdom is a knowledge of our own ignorance. Benjamin Franklin
gigaman
Member
Member
Posts: 134
Joined: 2003-02-14, 11:28 UTC

Post by *gigaman »

nevidimka wrote:2slashbeast
- more ram usage
Not in all cases.
When not?
nevidimka wrote:
- whole code of programm is loaded, not on demand
Only if a program use such techniques.
No. The original post (which I mostly agree with, even though the impact probably won't be that big) is refering to Windows memory management. Windows itself loads only the needed parts (on-demand) of the executable into memory. With the compressed executable, the whole file is loaded and unpacked there.
Besides, when a piece of the code is not used for a longer time, Windows may decide the swap it out. For uncompressed executable, it may simply discard (forget) the block - it can reload it from the file when needed. For compressed executable, it has to write it into the swap file first - because there's nowhere to reload it from.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Hacker
You cannot distribute files with NTFS compression.
I'm sorry I think this thread is about executing UPX compressed files not about these files in installers. In installers the compression ratio/less overhead combination - or better - the resulting size is critical.

2nevidimka
I know all this. I mean are there other disadvantages? Imagine the conclusion would be that UPX is really bad in memory usage, performance, loading speed or whatever. Would it be a good decision to use this compression instead of the completely uncompressed executable?
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
I think this thread is about executing UPX compressed files
I think this thread is about disadvantages of using UPX in general.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Hacker
I think this thread is about disadvantages of using UPX in general.
All the disadvantages named by the thread starter applies to running upx compressed executables only.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
So I added another point of view. ;) :P

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply