7z vs Zip (Love launcher Compression Method)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: 7z vs Zip (Love launcher Compression Method)

Post by tentus »

Robin wrote:
tentus wrote:I'd be surprised if switching compression formats gives you even 1% reduction in final size.
That's a bit overstated. Each megafile might be optimally compressed, but when you .zip a lot of files, there's bound to be some sort of repetition across files compression formats can take advantage of, like tar.gz files. (Come to think of it, I don't think ZIP actually does that, but it could.)
Maybe. Before I wrote that post, I ran a quick test using Kurosuke, a 4.16 MB game. I made the following four files using their default settings in 7z/winrar. Note that the smallest is only 10% smaller than the largest, and this is with a game that is only 1/5 the size of my hypothetical game.

(I'm actually a little confused how the .tar managed to increase file size, rather than reduce it.)
Attachments
kurosuke_beta.zip
(4.03 MiB) Downloaded 80 times
kurosuke_beta.tar
(4.32 MiB) Downloaded 339 times
kurosuke_beta.rar
(4 MiB) Downloaded 106 times
kurosuke_beta.7z
(3.91 MiB) Downloaded 458 times
Kurosuke needs beta testers
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: 7z vs Zip (Love launcher Compression Method)

Post by thelinx »

.tar files aren't compressed, you use it with other compression software like gz, bz2 or xz.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: 7z vs Zip (Love launcher Compression Method)

Post by tentus »

thelinx wrote:.tar files aren't compressed, you use it with other compression software like gz, bz2 or xz.
Shows how much I know. :awesome:
Kurosuke needs beta testers
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: 7z vs Zip (Love launcher Compression Method)

Post by tsturzl »

The more you compress something the more processing it takes to decompress. It would make distributing easier, but thats the only benefit. I'd rather have faster loading time, that and zip can still compress pretty well, you just need to tell your compression tool to do so.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: 7z vs Zip (Love launcher Compression Method)

Post by slime »

Someone (I forget who, it might have been David Rosen) made an observation recently that zipped files can take a shorter amount of time to read, especially with modern hardware, because CPU speeds are so far ahead of HD read speeds.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: 7z vs Zip (Love launcher Compression Method)

Post by tentus »

slime wrote:Someone (I forget who, it might have been David Rosen) made an observation recently that zipped files can take a shorter amount of time to read, especially with modern hardware, because CPU speeds are so far ahead of HD read speeds.
Probably true on a bit of a sliding scale. The more, smaller files you have, the truer that will be (8 1kb files vs 1 32kb file, for example.)
Kurosuke needs beta testers
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests