Compressed LDraw files


Re: Compressed Library was Re: Compressed LDraw files
#27
I looked at compression efficiency when we were selecting a compression format for X-Plane scenery data. When maxing out compression (not always a good idea as it increases encode time significantly) I found that from worst to best compression ratio the list went:

pkzip, bzip2, rar, and 7zip.

Rar is heavily license-entangled, so it's not really an option. We used 7zip because it had the best ratio, but for LDraw, I'd recommend pkzip because of the wide availability of simple, clean, portable compression/decompression utils. (7zip's quite a bit messier.)

I also found that compression ratios were very sensitive to source content. Our file format is a heavily bit-packed binary format, and it has optional RLE encoded in some cases. I found that with 7zip, the RLE encoding significantly worsened 7-zips compression ratio...the moral of the story was: let the experts do the compression.

So...I suspect that the compression ratio differences are coming from iteratively superior compression algorithms (no surprise the oldest tech does the worst) but YMMV based on file contents.

Honestly, the more I read this discussion, the less valuable compression suppot seems, relative to other possible development work. My LDraw file is 138 MB on disk. By comparison, LDD is using 562 MB on disk, itunes 253 MB, Keynote 562 MB, and FireFox 184 MB. My MOC airport is only 6.6 MB on disk for 22,000 bricks and months of my lif

I'm not saying that this is okay or that I'm happy that my web browser is approaching nearly 200 MB in size, but it seems to me that the data sizes the LDraw software suite deals with are quite tame. :-)

Anyway, sorry for the rant...my take-away point is that given multiple options, I would suggest we optimize for developer convenience and not storage efficiency, since that last few % improvement from pkzip to 7zip aren't going to turn into a huge user experience win, but I think we are limited on volunteer dev time.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Compressed LDraw files - by Roland Melkert - 2013-01-29, 20:33
Re: Compressed LDraw files - by Tim Gould - 2013-01-29, 20:44
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-29, 20:49
Re: Compressed LDraw files - by Tim Gould - 2013-01-29, 22:10
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 6:36
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 20:59
Re: Compressed LDraw files - by Allen Smith - 2013-01-30, 17:17
Re: Compressed Library was Re: Compressed LDraw files - by Ben Supnik - 2013-01-31, 20:26
Re: Compressed LDraw files - by Ben Supnik - 2013-01-30, 21:15
Re: Compressed LDraw files - by Allen Smith - 2013-01-31, 4:39
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-31, 21:59
Re: Compressed LDraw files - by Travis Cobbs - 2013-01-29, 20:46
Re: Compressed LDraw files - by Steffen - 2013-01-29, 23:23
Re: Compressed LDraw files - by Steffen - 2013-02-03, 1:33

Forum Jump:


Users browsing this thread: 1 Guest(s)