mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Efficiency improvements. Adds capabilities SelectAtId CreateSpatialIndex This uses line number as an index. Allows jumping to a line number without interpreting all intermediate records, so much more efficient. Also retains the current record in a buffer, so successive requests for the same record do not require rereading the file. With index available have also added indexing of subsets and optional creation of spatial index. Note: did try using QTextStream.pos to build a random access index - this was incredibly slow. Have found using line based index is reasonably fast even on quite large (50+Mb) text files.