http://www.perlmonks.org?node_id=993927


in reply to Re: Specialized data compression
in thread Specialized data compression

Thanks for the suggestions! It took me a few days to think this through and try some things.

Indeed, per your suggestion I have tried deltas for x,y,z, although they don't all fit in 8 bits (some deltas will of course overflow 16-bit as well), so I use a variable width int (8, 16, or 32 bit), which was a pretty big win, even after compression.

The bitwise transposition you refer to is interesting, but was complex and didn't change things much once xz got ahold of it.