Bug report #7533
field calculator is much slower on master than in 1.8
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Vectors | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16477 |
Description
~3000 records
QGIS 1.8:
New field -> $area: ~2s
Update -> $perimeter: ~2s
Update -> $id: <2s
QGIS master:
New field -> $area: ~32s
Update -> $perimeter: ~32s
Update -> $id: ~14s
Associated revisions
[FIX #7533] Field calculator is slow
Set the QgsDistanceArea only once and not for every loop cycle.
QgsCoordinateReferenceSystem::loadFromDb takes very long.
History
#1 Updated by Matthias Kuhn over 11 years ago
- Status changed from Open to In Progress
I've got a patch for this ready. Hopefully it is reviewed soon.
https://github.com/qgis/Quantum-GIS/pull/510
Giovanni:
You could help by doing your profiling with this patch again.
#2 Updated by Jürgen Fischer over 11 years ago
- Status changed from In Progress to Closed
Fixed in changeset a150865e2b518638956c5640d938e97934e694ea.
#3 Updated by Matthias Kuhn over 11 years ago
Giovanni, could you still do the profiling to verify this solves the issue. Thank you.
#4 Updated by Giovanni Manghi over 11 years ago
Matthias Kuhn wrote:
Giovanni, could you still do the profiling to verify this solves the issue. Thank you.
really, really improved. Thanks a lot Matthias!