After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621131 - User switch applet performance issues
User switch applet performance issues
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
: 621133 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-09 17:11 UTC by William Jon McCann
Modified: 2010-06-11 00:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove users-added signal harder (1.35 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Add API to queue loading of users (3.19 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Add has-multiple-users property (5.26 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Add queue_load to load users (906 bytes, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Make applet use has-multiple-users property (4.20 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Load passwd file in thread (15.64 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Don't try to remove users from object path hash with no object path (1.25 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Use a cheaper way to find the active item in the list (3.04 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Don't waste time growing the widget if already grown (1.11 KB, patch)
2010-06-09 23:03 UTC, William Jon McCann
none Details | Review
Don't add all users to the model at once (4.24 KB, patch)
2010-06-09 23:04 UTC, William Jon McCann
none Details | Review

Description William Jon McCann 2010-06-09 17:11:13 UTC
The user switch applet does a few things that aren't ideal.

 * Tries to list all users just to tell if there are > 1 users on the system

 * Tries to do the above for each add/remove signal
Comment 1 William Jon McCann 2010-06-09 22:55:57 UTC
*** Bug 621133 has been marked as a duplicate of this bug. ***
Comment 2 William Jon McCann 2010-06-09 23:03:39 UTC
Created attachment 163241 [details] [review]
Remove users-added signal harder
Comment 3 William Jon McCann 2010-06-09 23:03:41 UTC
Created attachment 163242 [details] [review]
Add API to queue loading of users

Don't queue a load on construction in case it isn't needed.
Comment 4 William Jon McCann 2010-06-09 23:03:43 UTC
Created attachment 163243 [details] [review]
Add has-multiple-users property

Clients that only want to take action when this changes don't have to
list all users and watch for add/remove events.
Comment 5 William Jon McCann 2010-06-09 23:03:45 UTC
Created attachment 163244 [details] [review]
Add queue_load to load users
Comment 6 William Jon McCann 2010-06-09 23:03:48 UTC
Created attachment 163245 [details] [review]
Make applet use has-multiple-users property
Comment 7 William Jon McCann 2010-06-09 23:03:50 UTC
Created attachment 163246 [details] [review]
Load passwd file in thread
Comment 8 William Jon McCann 2010-06-09 23:03:52 UTC
Created attachment 163247 [details] [review]
Don't try to remove users from object path hash with no object path
Comment 9 William Jon McCann 2010-06-09 23:03:55 UTC
Created attachment 163248 [details] [review]
Use a cheaper way to find the active item in the list
Comment 10 William Jon McCann 2010-06-09 23:03:57 UTC
Created attachment 163249 [details] [review]
Don't waste time growing the widget if already grown
Comment 11 William Jon McCann 2010-06-09 23:04:00 UTC
Created attachment 163250 [details] [review]
Don't add all users to the model at once

Chunk the updates into groups of 50.  This is well more than can be displayed
in the visible part of the list anyway.  This prevents blocking the UI
while the model is loaded.
Comment 12 William Jon McCann 2010-06-11 00:20:08 UTC
Committed to master.