<div dir="ltr"><br><br>On Sun, Jun 10, 2018 at 8:44 PM, Nikos Alexandris <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> wrote:<br>><br>><br>> Nikos:<br>><br>>>> I am building a docker image, based on trunk, for which I need to ensure<br>>>> that ZSTD is the default compressor.<br>>>><br>>>> What is the way to pre-set this at the configuration step, before<br>>>> compiling, so as to avoid to take care about it later on by setting<br>>>> GRASS_COMPRESSOR?<br>><br>><br>> Markus M:<br>><br>>> ZSTD is already the default compressor if available, no further settings<br>>> needed.<br>><br>><br>> Great!<br>><br>> However, descriptions of compressors in the raster indroduction for<br>> trunk [0], are maybe confusing.<br>><br>> ```<br>> ZLIB<br>> ZLIB's deflate is the default compression method for all raster maps.<br>> ```<br>><br>> and<br>><br>> ```<br>> ZSTD<br>> ... ZSTD is the recommended default compression method.<br>> ```<br>><br>> The same piece of text is used for `r.compress` [1].<br>> [0] <a href="https://grass.osgeo.org/grass75/manuals/rasterintro.html">https://grass.osgeo.org/grass75/manuals/rasterintro.html</a><br>> [1] <a href="https://grass.osgeo.org/grass75/manuals/r.compress.html">https://grass.osgeo.org/grass75/manuals/r.compress.html</a><br>><br>> I realised this before commenting in #3499. Yet, I thought "default" is ZLIB, and "recommended default" (like: "dear user,<br><div>> it's best if you set ZSTD as the default") is ZSTD.</div><div><br></div><div>It's trunk, and a new feature is being tested in trunk, therefore I made it the default compression method if available. I was not sure if ZSTD should become the new default compression if available, but after creating thousands of raster maps with ZSTD compression on different systems, I think it is safe to make ZSTD the new default if available. The rasterintro and the manual for r.compress have been updated accordingly in trunk r72794.</div><div><br></div><div>ZSTD is by now widely used by many different projects, also by GDAL. Considering the performance improvement of ZSTD over ZLIB, it is worth to consider if ZSTD should become a requirement for the next minor release (GRASS 7.6), granted that ZSTD is available on all supported systems.</div><div><br></div><div>Markus M<br></div>><br>> Nikos<br><br></div>