[gdal-dev] Any difference between VRT SimpleSource and no-op ComplexSource?

Even Rouault even.rouault at spatialys.com
Thu Dec 21 05:51:24 PST 2023


Laurențiu,

>
> I noticed that gdalbuildvrt with no options produces VRTs that use 
> ComplexSource, when SimpleSource would be sufficient. Is there any 
> meaningful performance difference between the two? I know I should 
> measure myself, I just didn't get to try it yet.

It only uses a ComplexSource when it needs to, that is to say when there 
is nodata or a mask band. Otherwise it will use SimpleSource. There is a 
performance hit in using ComplexSource when it is not needed. In 3.8, 
there has been an optimization to improve ComplexSource performance in 
common nodata-only scenarios: cf 
https://github.com/OSGeo/gdal/commit/cd67491d3909f5f05160fa209609b38d973c42de

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231221/e2a20201/attachment.htm>


More information about the gdal-dev mailing list