<div dir="ltr"><div><div><div><br><br>On Wed, Dec 6, 2017 at 10:41 AM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>><br>[...]<br>><br>> # null file<br>> identical<br>><br>> Curiosity: would it makes sense to compress the "nullcmpr" file according to the selected compression? Probably Markus M had already explained it but I don't remember...<br><br></div>In short, it's a waste of time.<br><br></div>Null files are very small with one bit per cell. Small data are difficult to compress, and using a stronger compression method might actually produce a larger, not a smaller output, and it takes longer. Regarding null file compression, LZ4 is not only the fastest method, it is also regularly the method with the best compression ratio.<br><br></div>Null files and [f]cell files have different characteristics regarding compression, therefore one compression method can perform best for cell values and another one might perform best for null file compression. You would need to be able to choose separate compressors for the actual data and the null file in order to achieve maximum compression or the best compromise between speed and compression. That's too complicated. Most of the time LZ4 is a good if not the best choice, therefore null file compression is fixed to LZ4.<br><div><div><div><div><br></div><div>Markus M<br></div><div><br>><br>> Best,<br>> markusN<br>><br>> --<br>> Markus Neteler, PhD<br>> <a href="http://www.mundialis.de">http://www.mundialis.de</a> - free data with free software<br>> <a href="http://grass.osgeo.org">http://grass.osgeo.org</a><br>> <a href="http://courses.neteler.org/blog">http://courses.neteler.org/blog</a><br>><br>><br>> _______________________________________________<br>> grass-dev mailing list<br>> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br><br></div></div></div></div></div>