forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move actual stats calculation to thread
Previously we just used the background thread to prefetch all the attribute values in advance, and then calculated the stats on the main thread. This had a number of downsides: - It would block main thread while iterating over the collected values and calculating stats - It required storage of ALL the fetched attribute values in a container. By just passing these values immediately to the stats summary classes, there's optimisations in place which will avoid storing all values wherever possible. - There was custom logic to handle null values, when we should be relying on the standard logic from the stats summary classes to be consistent with other places in QGIS
- Loading branch information
1 parent
81d77fa
commit fc52829
Showing
2 changed files
with
181 additions
and
79 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
Oops, something went wrong.