This isn't really a wish, just a random "out-there" thought.
Have you considered using UPX to compress the main executeable? I've just had a bash at doing just that. I used the following command upx *.* --brute --nrv2d -k (nice and lazy) to compress xyplorer_5.20.0060 from 1.92 MB (2,011,136 bytes) to 616.00 KB (630,784 bytes).
Even if you cba to do this for every beta (understandable perhaps), it may be worth doing it for the main releases?
Everything still appears to work, and it even makes the ZIP file download a couple of hundred KB smaller. I haven't done any benchmarking yet to see if it's slower or even faster, but I'm sure you'd be able to do that better than anyone Don.
Notes:
-k creates a backup of the original files it's compressing.
--brute does multiple pass compressing to find the best method of compressing the executable, but is the slowest.
XYplorer.exe [ver 5.20.0064] - 1.92 MB (2,017,280 bytes) --> 617.50 KB (632,320 bytes)
XYplorer.exe [ver 5.40.0000] - 1.93 MB (2,020,352 bytes) --> 618.50 KB (633,344 bytes)
XYplorer.exe [ver 5.40.0001] - 1.93 MB (2,022,400 bytes) --> 618.50 KB (633,344 bytes)
XYplorer.exe [ver 5.40.0002] - 1.93 MB (2,022,912 bytes) --> 619.00 KB (633,856 bytes)
XYplorer.exe [ver 5.40.00.06] - 1.94 MB (2,035,200 bytes) --> 621.00 KB (635,904 bytes)
XYplorer.exe [ver 5.40.00.08] - 1.94 MB (2,038,272 bytes) --> 622.00 KB (636,928 bytes)
UPX compress the main executable?
-
lukescammell
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
UPX compress the main executable?
Last edited by lukescammell on 09 Nov 2006 14:36, edited 5 times in total.
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
admin
- Site Admin
- Posts: 66257
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: UPX compress the main executable?
Wow, impressive! Something to come back to eventually. Thanks for the info!lukescammell wrote:This isn't really a wish, just a random "out-there" thought.
Have you considered using UPX to compress the main executeable? I've just had a bash at doing just that. I used the following command upx *.* --brute --nrv2d -k (nice and lazy) to compress xyplorer_5.20.0060 from 1.92 MB (2,011,136 bytes) to 616.00 KB (630,784 bytes).
-
admin
- Site Admin
- Posts: 66257
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: UPX compress the main executable?
Quick thought: Do you know by any chance whether this compression works as a safety belt against reverse engineering (software piracy)?? I would think so, but have not researched or tested yet.lukescammell wrote:Have you considered using UPX to compress the main executeable?
-
lukescammell
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
I don't know off the top of my head. I don't program, so this is purely speculation, but I would imagine you could just use the decompressor sme how to decompress the executable and then reverse engineer as per normal? If you can't do that, then I guess it could help!
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
admin
- Site Admin
- Posts: 66257
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
If they'd support password-protected compression and if the compressed app does not become any slower (which I doubt but have not tested yet), then I would happily go for UPX, of course!lukescammell wrote:I don't know off the top of my head. I don't program, so this is purely speculation, but I would imagine you could just use the decompressor sme how to decompress the executable and then reverse engineer as per normal? If you can't do that, then I guess it could help!
-
lukescammell
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Certainly my startup values don't appear to be that much slower than other people's and I always UPX the executables of the betas since I posted this thread. Like I said though, I'm sure you have better ways of benchmarking XY. Providing this is the case, is it not worth UPXing it anyway just from the point of view of it being smaller for people's USB sticks? Again, I'm not suggesting you do it for each beta (although it would save me doing it each time
and maybe some bandwidth for you?), but it would certainly make sense for the main release on your site.
Regarding password protection... I'm not sure how that would work since as soon as you run the executable it's decompressed into memory anyway no?
Regarding password protection... I'm not sure how that would work since as soon as you run the executable it's decompressed into memory anyway no?
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: UPX compress the main executable?
I don't really think so, especially since UPX allows you to decompress any compressed executable: upx -d compressed.exeadmin wrote:Quick thought: Do you know by any chance whether this compression works as a safety belt against reverse engineering (software piracy)?? I would think so, but have not researched or tested yet.
(and I don't think there's a password compression of any kind no)
But still, UPX is a great soft and is known to have a great compress ratio, and keep the apps fast.wikipedia wrote:UPX can be used to prevent direct disassembly, mask strings literals and modify signatures. Although this does not eliminate the chance of reverse engineering, it can make the process more costly
Proud XYplorer Fanatic
-
lukescammell
- Posts: 744
- Joined: 28 Jul 2006 13:15
- Location: Kent, UK
- Contact:
Just so you don't forget about this one day Don 
XYplorer.exe [ver 6.10.0064] - 2.18 MB (2,289,664 bytes) --> 631.50 KB (646,656 bytes)
This means that XY would actually fit on a floppy
XYplorer.exe [ver 6.10.0064] - 2.18 MB (2,289,664 bytes) --> 631.50 KB (646,656 bytes)
This means that XY would actually fit on a floppy
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)
Windows 10 Pro x64 (everywhere except phone…)
-
admin
- Site Admin
- Posts: 66257
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Great. What is a floppy?lukescammell wrote:Just so you don't forget about this one day Don
XYplorer.exe [ver 6.10.0064] - 2.18 MB (2,289,664 bytes) --> 631.50 KB (646,656 bytes)
This means that XY would actually fit on a floppy
FAQ | XY News RSS | XY X
XYplorer Beta Club