Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QgsInterface::adddockwidget slows down when large layers open #27887

Closed
qgib opened this issue Oct 10, 2018 · 1 comment
Closed

QgsInterface::adddockwidget slows down when large layers open #27887

qgib opened this issue Oct 10, 2018 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Oct 10, 2018

Author Name: Johannes Elstner (@fuzzysolutions)
Original Redmine Issue: 20065
Affected QGIS version: 3.2.3
Redmine category:python_plugins


Having opened a larger vector layer, reloading a plugin using PluginReloader is slower in QGIS 3.2.x than in QGIS 2.18.x (tested with 3.2.3 and 2.18.23, but presumably consistend over other versions).
Using cProfile, if found out its not the plugin itself but its call of QgsInterface::addDockWidget that causes the delay. Closing and re-opening the plugin dockwidget shows the same delay behaviour.

On QGIS 3, addDockWidget takes 5s - 20s, depending on the size of the vector layer and the location of storage (its slower with a layer from a remote network drive). Without any layer opened, its just as fast as normal. My plugin, obviously, contains some QgsMapLayerComboBoxes. Somwhere in the call of addDockWidget there must be a time-expensive call onto the layers that are to be shown in the comboboxes.

@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2019

Author Name: Johannes Elstner (@fuzzysolutions)


Not reproducable in QGIS 3.6.1.


  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Apr 16, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant