mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
Follow up 56f7812ca1e This commit fixed the ordering of features coming from the vector layer cache for the attribute table, but came with a massive speed impact due to the repeated calls QList::contains for every feature fetched. For any moderately sized table or above these calls stacked up into multiple minute delays in opening the table. Avoid this by tracking the added feature ids in a separate unordered set, so that we don't need to check through the ordered list for existing features at all. Eg a 500k feature gpkg was taking 10 minutes to open the table. With this optimization that's back down to 20 seconds.