[gdal-dev] limiting drivers that get registered

Even Rouault even.rouault at spatialys.com
Tue Mar 27 04:00:55 PDT 2018


On mardi 27 mars 2018 21:51:46 CEST Ben Elliston wrote:
> On 27/03/18 21:49, Even Rouault wrote:
> > Hum why would you need to call GDALAllRegister() if you already manually
> > registered some of them ?
> 
> Because reordering the driver list by placing commonly used drivers at
> the head of the list makes a significant difference in the time taken to
> open files.

Ah that was apparently your actual need rather than limiting the number of 
drivers per-se. Do you have profiled where time was lost if you find opening 
too slow ? The identification logic of drivers is supposed to operate fast 
(extension based, or on the content of the first kilobyte of the header), but 
there might be some drivers where improvements can be done.

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


More information about the gdal-dev mailing list