Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split tool: create new features all at once (fixes #40860)
The cause of the slowness of split tool on layers with many features (e.g. more than 100k) was due to lots of QgsVectorLayer::uniqueValues() calls when creating features. If we create the new features all at once, the returned unique values get calculated just once and cached, which makes things much faster. Results on testing datasets: - ~130k polygons: before ~6s, after ~0.5s - ~1M lines: before ~100+s, after ~3s (cherry picked from commit 5454d22)
- Loading branch information