Commit
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
1 parent
dcd016b
commit 4970c3a
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
|
||
|
||
|
||
|
||
class QgsVectorLayerCache : QObject | ||
{ | ||
%Docstring | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters