[gdal-dev] OGR random read optimization?

Ray Gardener rayg at daylongraphics.com
Mon Nov 30 22:06:07 EST 2009

The OGRLayer::SetNextByIndex() function can be sped up by keeping track 
of the previously used index, and calling ResetReading() only if the new 
index is lesser than it. Otherwise, read forward and skip features by 
the difference of the new and old indices.

For thread safety, the old index should be kept in a caller-level data 
structure which is passed in as an argument to SetNextByIndex.


More information about the gdal-dev mailing list