LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2011, 02:57 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
regarding 7zip and archivers in general


Its much better to use the good archiver such as rar, 7zip on uncompressed files (and not after crappy zip for eg. ).

People often compress .iso files and similar that contain .cab archives.

So, compression ratio would be much better if those .cab files were first uncompressed and then rar-ed/7zip-ed.

I know it would be difficult, and dearchiver would need to re-compress to make .cab again (so it would have to include M$ algorithm and unpacking would take a lot of time) but its possible?

Last edited by qrange; 01-26-2011 at 02:59 AM.
 
Old 01-26-2011, 08:22 PM   #2
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Sure, it's POSSIBLE. You'd have to extract the iso, scan the file structure for archives, decompress said archives while storing their original name and location, then compress the whole file structure. Then the dearchiver has to decompress the file structure, restore the original archives, and then make the iso - remembering to make it bootable if applicable.

It's a convoluted process, and will require temporary disk space equal to the size of the iso. You mentioned it could take a long time. If the iso contains a decompression bomb, the user of your program is exposed to it. And there's a good chance the dearchived iso will not be bit-for-bit identical to the original.

I really don't think the few percent file savings are likely to be worth it.
 
Old 01-28-2011, 05:55 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
I did a test with 300Mb archive and the difference is almost 9%. That is not negligible for modern archivers.

It would be nice to have it as option, just like solid packing.

Last edited by qrange; 01-28-2011 at 05:57 AM.
 
Old 01-30-2011, 03:40 PM   #4
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
of course someone else has already done it.. PerfectCompress has "file precompression" option that does just that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i cant load 7zip mustafayuceler Linux - Software 3 07-21-2010 09:57 AM
i cant load 7zip mustafayuceler Linux - Software 5 07-12-2010 10:29 PM
Help with 7zip sudarshan22 Linux - Newbie 2 12-26-2007 11:29 AM
Gui for archivers mtb Linux - Software 9 09-07-2006 03:55 AM
7zip in linux ? sunpascal Linux - Newbie 9 02-07-2006 04:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration