the docs are saying packing with level 9 will be slow but giving better results as ZIP compressed.
for one of my projects i tried to pack around 70 bitmaps (9 MB) using compression level 9 and write all packed bitmaps to one big datafile. the final result was: 5060 KB
i tried to pack all the same files with ZIP compression to one archive and this final result was just only: 4800 KB
Is there any way to improve the compression like ZIP or RAR?
Packer Library - Improve Compression?
- NoahPhense
- Addict

- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: Packer Library - Improve Compression?
The LZMA compression routine is the best that we have access to. Here is
the SDK.. maybe someone can convert it for us..
I would, but I'm
swamped!!
- np
http://7-zip.com/sdk.html
the SDK.. maybe someone can convert it for us..
swamped!!
- np
http://7-zip.com/sdk.html
- NoahPhense
- Addict

- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
It is.. and I'm all for RAR.. (my favorite).. but have discovered that LZMAWolf wrote:You try to pack one big txt file in PB, ZIP and RAR file.
You can see PB Packer is very power of ZIP and RAR
is even better..
Read about 3/4 of the way down the page.. Num3's comparison post.
viewtopic.php?t=11850&postdays=0&postorder=asc&start=0
- np
@Wolf:
packing only text is very easy to compress and gives always very good results! just try it with other datas (executeables, bitmaps or any other complex datas)! i tried the compression results with different kind of datas (tons of bitmaps, and other complex dataformats)! in all tests, ZIP got better results as pb compression methode 9! ofcourse it depends on the data you want to pack!
@NoahPhense:
i agree with you! i would very welcome to have LZMA/Z7 compression/decompession lib for purebasic (no DLL)! someone here who can/want create the open source as pure lib?
General:
my standard archive program is ZIP. But my famous packing program and best packingrate comes with RAR! Even this two packers are standard! i am a very big fan of LZMA/7Z, even the results are better as ZIP, RAR... LZMA is my personal winner
Congratulation to the developers!
Results:
here are my results with packing around 70 bitmaps to one big file/archive:
PB Packer - level 9 - 5060 KB (packed) - some mins to compress!
ZIP - 4800 KB (packed) - some seconds to compress!
RAR - 4560 KB (packed) - some seconds to compress!
LZMA/7Z - level maximum (not ultra) - 4200 KB - 1 hour to compress on 1GHZ and required up to 200 MB of RAM (using swapfile) (strange!)
decompressing LZMA/7Z is fast enough!
packing only text is very easy to compress and gives always very good results! just try it with other datas (executeables, bitmaps or any other complex datas)! i tried the compression results with different kind of datas (tons of bitmaps, and other complex dataformats)! in all tests, ZIP got better results as pb compression methode 9! ofcourse it depends on the data you want to pack!
@NoahPhense:
i agree with you! i would very welcome to have LZMA/Z7 compression/decompession lib for purebasic (no DLL)! someone here who can/want create the open source as pure lib?
General:
my standard archive program is ZIP. But my famous packing program and best packingrate comes with RAR! Even this two packers are standard! i am a very big fan of LZMA/7Z, even the results are better as ZIP, RAR... LZMA is my personal winner
Results:
here are my results with packing around 70 bitmaps to one big file/archive:
PB Packer - level 9 - 5060 KB (packed) - some mins to compress!
ZIP - 4800 KB (packed) - some seconds to compress!
RAR - 4560 KB (packed) - some seconds to compress!
LZMA/7Z - level maximum (not ultra) - 4200 KB - 1 hour to compress on 1GHZ and required up to 200 MB of RAM (using swapfile) (strange!)
decompressing LZMA/7Z is fast enough!
