Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix massive performance regression in attribute table
Follow up 56f7812 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. (cherry picked from commit b4757da)
- Loading branch information
Showing with 32 additions and 5 deletions.