能否用上upx嗎?載入速度可快30%以上的!!
試過在mdk 下的 x kde gnome firefox 上用, 載入時間大大加快了, 覺得在桌面應用上大有可為的!! 最好用上upx-ucl希望大大門多多指教~~ :) 它是个什么东东? :shock: 一个压缩可执行程序的程序,类似win下面的aspack 真的很好用的, 大家都來試下吧
upx.sf.net http://www.oberhumer.com/opensource/ucl/
<b>Overview</b>
UCL is written in ANSI C. Both the source code and the compressed data format are designed to be portable across platforms.
UCL implements a number of algorithms with the following features:
* Decompression is simple and *very* fast.
* Requires no memory for decompression.
* The decompressors can be squeezed into less than 200 bytes of code.
* Focuses on compression levels for generating pre-compressed data which achieve a quite competitive compression ratio.
* Allows you to dial up extra compression at a speed cost in the compressor. The speed of the decompressor is not reduced.
* Algorithm is thread safe.
* Algorithm is lossless.
UCL supports in-place decompression.
UCL and the UCL algorithms and implementations are distributed under the terms of the GNU General Public License (GPL) { auf Deutsch }. Special licenses for commercial and other applications are available by contacting the author.
<b>How fast is fast ?</b>
Here are some original timings on an old Intel Pentium 133:
* memcpy(): ~60 MB/sec
* UCL decompression in optimized assembler: ~13 MB/sec
* LZO decompression in optimized assembler: ~20 MB/sec
* LZO decompression in C: ~16 MB/sec 我用过的upx,他会在/tmp下解压出老的文件再运行(不过是比较老的版本了)。
即时现在能做到在内存中解压,也要考虑解压的时间是否和
load程序的时间开销有明显优势。 :?: 呵呵,我的/tmp是用shmfs的,不在硬盘上。
页:
[1]