[GRASS-dev] i.segment: possible to cache results of open_files() for several runs of i.segment ?

Moritz Lennert mlennert at club.worldonline.be
Fri Aug 4 01:55:40 PDT 2017


On 03/08/17 14:09, Markus Metz wrote:
> There is one relatively easy possibility to speed up reading input, if 
> the input maps are compressed with ZLIB or BZIP2: you could compress the 
> input maps with LZ4, this would speed up reading since quite a bit of 
> time is spent on decompressing ZLIB or BZIP2 compressed data.
> 
> export GRASS_COMPRESSOR=LZ4
> r.compress <input_map>

Thanks for the info ! We'll test that as well as trying out different 
solutions combining classical hard disk, ssd and possibly ram disk, 
especially for running many i.segment instances in parallel on the same 
data.

Moritz





More information about the grass-dev mailing list