Precompression Filter Click to visit | posted by HoboBen | No Votes
| Improve the compressibility of your data by filtering it in this way.
-->
Improve compression further by arranging data in a way that it precompresses better, too!
e.g. rather than do this:
For each tile
WriteInt(tileType)
WriteInt(tileColor)
WriteInt(tileSomethingElse)
Next
where each written int is going to vary widely,
Do this:
For each tile
WriteInt(tileType)
Next
For each tile
WriteInt(tileColor)
Next
For each tile
WriteInt(tileSomethingElse)
Next
Where each block is going to be full of values with little difference. |
Latest Comments
| Posted : Sunday, 11 July 2010, 00:30 |
Mog

 
| Good point, actually...
| | Posted : Sunday, 11 July 2010, 03:20 |
HoboBen

 
| Here we go, did I nice write-up! Optimal Compression for Binary Data
| | Posted : Sunday, 11 July 2010, 11:03 |
Mog

 
| Again, good stuff, Ben. I feel stupid from not considering this sooner.
| | Posted : Sunday, 11 July 2010, 13:45 |
Jayenkai

 
| Great stuff! That's a fantastic leap in filesize!
|
|