GNOME Bugzilla – Bug 476342
Icon cache validation causes severe page-in
Last modified: 2007-12-01 17:00:45 UTC
GtkIconCache now runs _gtk_icon_cache_validate() for every cache loaded. This causes a big chunk of each icon cache file to be paged in; this makes apps slow at startup when it is likely that other apps have caused the icon caches to be paged out. This started out as https://bugzilla.novell.com/show_bug.cgi?id=303869
Created attachment 95485 [details] [review] Patch to make validation run only if GTK_DEBUG=icontheme This is the patch I'll be using for Novell's gtk+ package.
I've already committed a slightly different version to trunk.
(In reply to comment #2) > I've already committed a slightly different version to trunk. Huh, where? :) It just updated and it's not there.
In gtkiconcache.c: #ifdef G_ENABLE_DEBUG if (gtk_debug_flags & GTK_DEBUG_ICONTHEME) { if (!_gtk_icon_cache_validate (&info)) { g_mapped_file_free (map); g_warning ("Icon cache '%s' is invalid\n", cache_filename); goto done; } } #endif
I just updated from trunk and that code is definitely not there :)
Grr, I must be seeing ghosts. I was 100% sure that I committed it. But you are right, now that I am looking again, it is not there. Too bad. Let me commit it now. I'll mention it in the release announcement, maybe.
See http://svn.gnome.org/viewcvs/gtk%2B?view=revision&revision=18823
Marking as fixed since the patch is committed now.
Btw, federido, did anything ever come out of the icon cache optimization work that somebody was doing ?