[gdal-dev] Help with idiomatic GDAL solution for raster algebra benchmark

Even Rouault even.rouault at spatialys.com
Wed Jun 20 09:34:56 PDT 2018


> I ended up with the following timings:
> 
> GDAL-Only using ReadBlock(...)                         :   7.7 seconds
> GDAL-Only using RasterIO(...)                            : 30.1 seconds
> GDAL-Only using GetLockedBlockRef(...)         :   8.9 seconds
> Pronto Raster using GetLockedBlockRef(...)     : 10.6 seconds
> 
> I suppose the relatively poor performance of RasterIO is known 
> (https://lists.osgeo.org/pipermail/gdal-dev/2008-March/016357.html and 
> https://trac.osgeo.org/gdal/ticket/2266), although I don't understand 
> the reason for it.

The main reason is that RasterIO() involves an extra memcpy() from the block 
cache buffer to the user provided buffer.

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list