Bug 199171
Summary: | Performance of the TreeViews is slower | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stewart Adam <s.adam> |
Component: | yumex | Assignee: | Tim Lauridsen <tim.lauridsen> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | dzrudy, extras-qa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-08-10 08:20:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Stewart Adam
2006-07-17 18:10:27 UTC
I am aware of the problems adding the rows to the treeview is very slow, it is the mayor time consumer in yumex, it have tried some stuff from the PyGtk FAQ, but it didn't improve the speed a lot. I have tried to disconnect the Model from the view while adding data, it speed up the adding, but then i get a long delay when reconnecting the model, for the view has to sort the data in the view. I have planned to do some testing of how to added data to the view in the fastest way it is one of the mayor issues i will work on in yumex 1.1.x. Hi I have done some testing on the Yumex 1.0 branch in svn and the slowdown doesn't seem to be caused by adding packages to the treeview itself. I have commented out the line where the packages are being added to the treeview (in the "add" method of yumexPackageList class) and the performance didn't improve much. It looks like that each package is processed a few times before it gets added to the tree and it takes the most of the CPU time - for every single package there is always yumexPackage object created and this is where the slowdown occurs for me. Unfortunately, I don't know how to solve it yet.. :-( I have done some mayor changes to the current svn trunk verison of yumex (1.1.1). I changed the ways packages are stored and handled internally in yumex. I have split the package list creating in 2 passes. Pass 1: The packages are stored in yumex data structures. Pass 2: The packages are added to the TreeView. Pass 2 is now done by a background thread, the update, install and remove view first get selectable when all packages are added to the view. I have also added a update only mode, so you only want to update the system, then you can start yumex without showing and populating the instal and remove view. Cool - Looking forward to the next release... Also, I'm not sure if you'd like for me to report a seperate bug for this, but when hitting 'refresh', this has been coming up ina terminal for a while now: /usr/lib/python2.4/site-packages/yum/config.py:454: DeprecationWarning: getConfigOption() will go away in a future version of Yum. Please access option values as attributes or using getattr(). DeprecationWarning) Stewart No need to report a bug for the DeprecationWarning, it is solved in the current SVN version. If you want look into the future, you can get a 1.1.1 pre-release here. http://linux.rasmil.dk/dnl/yumex-devel/ |