https://bugzilla.novell.com/show_bug.cgi?id=338024
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=338024#c6
JP Rosevear
Please explain why the current CPU cycles used is a problem.
CPU cycles == battery time. A busy main-menu means the computer is less useful for travel.
But seriously, did you take a look at what main-menu really does? Throw strace at it and observe:
* It reads /proc/mounts and /proc/partitions. It then stats everything mentioned in there.
Not sure about this, I doubt its direct work in the menu but probably unnecessary work.
* It appears to be talking to NetworkManager via dbus.
Yes, its probably polling for state and doing it all the time rather than just on open. The problem as I recall is that stacking up a bunch of stuff for work can then cause the menu to take a long time to open, so this will have to be but in a thread presumably (and maybe figure out a way not to blink icons or have UI inconsistencies).
* It stats about 100 directories like /usr/local/share/icons
And it does all of those every few seconds!
If it wants to know when some files change, then it should arrange for a wakeup call when they do. inotify should work for that.
For applications the gmenu library from gnome-desktop is used. I think its using inotify underneath. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.