GNOME Bugzilla – Bug 702913
[PATCH] Reduce hash table lookups in gdk_x11_screen_supports_net_wm_hint()
Last modified: 2013-06-25 01:21:31 UTC
Created attachment 247573 [details] [review] Optimize gdk_x11_screen_supports_net_wm_hint() Please find attached a simple patch which moves the call to gdk_x11_atom_to_xatom_for_display() outside of the search loop in gdk_x11_screen_supports_net_wm_hint(). In my test case (running Audacious for about a minute), this reduced the total number of hash table lookups performed from 370,000 to 230,000.
Looks like this was committed in 6eea6ddcc3a8dc1ac18e83161de2acfa77a356e8. Thanks!