Bug report #14041
opening the layer properties window can take ages nowadays
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22053|
I've noticed that for some time now, opening the layer properties window can take 4-5 seconds on layers having a large number of fields.Steps to reproduce
- Create a new project
- Add the attached vector shapefile dataset (it's a single polygon, with a large number of fields)
- Double click on the layer to open its properties window
- You'll notice it will take quite a long time, during which QGIS is frozen
You can also see a freeze / slowdown when you open the fields dropdown list in the labelling panel of the properties window.
Anybody else has noticed this regression?
#3 Updated by Mathieu Pellerin - nIRV almost 6 years ago
Nyall, after your 34c9daa, I cannot see a difference in speed between opening a layer properties window for a dataset containing dozens of fields vs. a dataset containing 2-3 fields. So that's a huge win.
That said, I feel opening the window still takes a noticeable amount of time. Maybe it has been like that for a while though, and the field-linked regression is fixed. Should we close this and mark it as fixed?
#4 Updated by Martin Dobias over 5 years ago
Mathieu, if you use Debug version of QGIS, then my latest commit may speed up loading significantly (tested with 100K rows - before ~13s, after ~2s).
Shall we close this issue or do you have other examples where opening attribute table takes much longer that it should? (especially compared to previous releases)
#6 Updated by Mathieu Pellerin - nIRV over 5 years ago
Martin, the regression I had spotted was when opening the layer properties window, not the attribute table. Nyall wanted this issue to stay open until he felt confident he had done everything he could to speed up that properties window, will leave it to him to close this issue.