<div dir="ltr"><div><div>UPX compressed executables need more memory since normally the OS will load code pages on demand and only code that is actually executed is loaded from the executable, whereas UPX forces the entire executable to be in memory. Moreover UPX prevents the OS to share the code between different instances of the program - that means if you run a 10MB program twice, with UPX you'll use 20MB whereas without UPX you'll only use 10MB. Similarly the OS can cache the executable between runs, so by UPXing it you lose that too.<br><br></div>There isn't really much of a reason to compress executables nowadays, the idea is a relic from the days of floppy disks and sub-GB hard drives. Today they actually do more harm than good and only give a fake feel of compactness.</div><div><br></div><div>There is only one case where they might be justified and this is downloading the executable by itself off the Internet. This can save bandwidth with UPX's --lzma compression (at the cost of memory) but this is of marginal worth and only if you are distribution a single executable without any other files. In any other case you are better off compressing the entire program and its data files in a solid archive like .7z or .tar.xz or with a setup program that support LZMA compression. This will actually create smaller files for download.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 31, 2017 at 11:08 AM, coppolastudio via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">upx zip the executable. about false positves I never got this troubles with my few files and free av like Avira or AVG, regards<br>
</div><span class="im HOEnZb"><div dir="ltr"><br>
</div><div class="m_-604981932920338777wps_signature"><div dir="ltr">Inviato tramite il client di Posta WPS</div></div></span><div class="HOEnZb"><div class="h5"><div class="m_-604981932920338777wps_quotion">Il Graeme Geldenhuys via Lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><wbr>>, 30/dic/2017 08:28 PM ha scritto:<br type="attribution"><blockquote class="m_-604981932920338777quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p></p><p dir="ltr">On 2017-12-30 15:16, coppolastudio via Lazarus wrote:<br>
> furthermore you can pack the executable with upx</p>
<p dir="ltr">That shouldn't be needed if debugging information is excluded from the <br>
executable. Also from what I remember (years back), Windows anti-virus <br>
software hated UPX compressed executables - giving tons of false positives.<br></p>
<p dir="ltr">Regards,<br>
Graeme</p>
<p dir="ltr">-- <br>
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal<br>
<a href="http://fpgui.sourceforge.net" target="_blank">http://fpgui.sourceforge.net</a>/</p>
<p dir="ltr">My public PGP key: <a href="http://tinyurl.com/graeme-pgp" target="_blank">http://tinyurl.com/graeme-pgp</a><br>
-- <br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" target="_blank">https://lists.lazarus-ide.org/<wbr>listinfo/lazarus</a><br>
</p>
<p></p></blockquote></div></div></div><br>--<br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org">Lazarus@lists.lazarus-ide.org</a><br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">https://lists.lazarus-ide.org/<wbr>listinfo/lazarus</a><br>
<br></blockquote></div><br></div>