LZMA (7zip) should be used for data package: 150MB smaller

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Alien » Thu Apr 23, 2009 6:22 am

tundramagi wrote:
Alien wrote:Tar question was not about size (of course) but about loading speed. For example, STEAM's gcf files have low compression, because they were made like this to increase loading speed by preventing file scattering around the filesystem and not to make an archive small as possible. One could compress whole nexuiz using lzma and then decompress everything to data.tar (if it was actually faster then zip). This way game would load (maybe) quicker while taking less time to download. The issue is not final data.* size, but time it takes to load the files.


I guess you ignored the part "data in zip loads twice as fast as uncompressed".
Let's ignore that part again. Let's ignore it forever!

You could 7zip nexuiz, but then no one would beable to figure out how to unzip it and play the game.
If peeps can't figure out how to copy/paste encryption keys, or hack macintosh computers and pwn them, how could the figure out what a "doyt 7z" is?


Started stalking me? It was just another thing which I wanted - personal troll. 8) Yay
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby tundramagi » Thu Apr 23, 2009 6:41 am

Alien wrote:
tundramagi wrote:
Alien wrote:Tar question was not about size (of course) but about loading speed. For example, STEAM's gcf files have low compression, because they were made like this to increase loading speed by preventing file scattering around the filesystem and not to make an archive small as possible. One could compress whole nexuiz using lzma and then decompress everything to data.tar (if it was actually faster then zip). This way game would load (maybe) quicker while taking less time to download. The issue is not final data.* size, but time it takes to load the files.


I guess you ignored the part "data in zip loads twice as fast as uncompressed".
Let's ignore that part again. Let's ignore it forever!

You could 7zip nexuiz, but then no one would beable to figure out how to unzip it and play the game.
If peeps can't figure out how to copy/paste encryption keys, or hack macintosh computers and pwn them, how could the figure out what a "doyt 7z" is?


Started stalking me? It was just another thing which I wanted - personal troll. 8) Yay


The forum doesn't get much posts. You're the only one posting today :P
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby divVerent » Thu Apr 23, 2009 2:12 pm

Alien wrote:Tar question was not about size (of course) but about loading speed.


tar is not compressed AT ALL. Zip is faster than uncompressed.

But DP already supports an uncompressed format, so you can do your own benchmarks and try. It is Quake's PAK format.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Alien » Thu Apr 23, 2009 5:58 pm

What would be the explanation of zip being the fastest?
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby esteel » Thu Apr 23, 2009 7:30 pm

loading the compressed data and extracting it is faster then just reading the uncompressed data.
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Thu Apr 23, 2009 7:32 pm

Basically, zip decompression is faster than your hard drive can read data.

Uncompressed is only faster if cached.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby tundramagi » Thu Apr 23, 2009 8:57 pm

Basically harddrives are garbage and should be shot.
Alien: why AREN'T you using an SSD.
Everyone used an SSD these days, get with the program G.
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby scientes » Fri Apr 24, 2009 9:34 am

@tundramagi
in this case, access times (what SSDs are so good at) are not really the thing making uncompressed slower, it is aligned reads, which i believe hard drives are still faster at.


It would be kinda nutty but i could see the file starting as .tar.lzma and then being converted to .tar.gz on first load. lzma decompression itsself (without file packing 7zip stuff) is a very small C library. However i have no idea about tar.gz (and .tar.lzma) vs zip on random accesses (compression wise they are identical)
scientes
Newbie
 
Posts: 4
Joined: Wed Apr 22, 2009 4:44 am

Postby Taiyo.uk » Fri Apr 24, 2009 12:19 pm

tundramagi wrote:why AREN'T you using an SSD.

Cost. SSDs are still more expensive than conventional hard discs, by an order of magnitude. MTBFs, really, aren't all too different despite the garbage that SSD salesdroids peddle.

scientes: Recent SSDs are significantly faster at sequential, aligned reads than HDDs are. HDD sequential read speed is limited by how quickly you can spin the platters while SSDs are limited by how many flash dies you can run in parallel.

Anyway back to the point. I think a major reason to use a more efficient compression is to reduce download times rather than map loading times since the difference in loading times between uncompressed/zip/bz2/7-z/etc. will be rather insignificant in any system from the last five years or so. Difference in download times will be many minutes for allot of the community though.

On systems with slow HDDs the CPU time to decompress is often less than the HDD time to read uncompressed files.
Taiyo.uk
Alien trapper
 
Posts: 436
Joined: Mon Apr 17, 2006 8:48 pm
Location: Reading, IN-GER-LUND!!!

Postby divVerent » Fri Apr 24, 2009 4:53 pm

Actually, it does matter if a map loads in 10 or 15 seconds...
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron