GNOME Bugzilla – Bug 586539
Speedup initializaion of DocInfo objects
Last modified: 2009-06-22 13:42:04 UTC
The provided patch moves the Shell.get_thumbnail call from DocInfo.prototype._init to getIcon (so that it's only called when it's actually needed; we don't need to load the icon for all the hundreds of recently used items paginated in the overlay at startup) and disables that call when the URI isn't a local file as doing that lookup for http(s):// locations is very slow. On my Zeitgeist integration branch, not using that patch gnome-shell hangs at startup for several minutes.
Created attachment 137120 [details] [review] The described patch
Created attachment 137121 [details] [review] Oops, put a "let" in the wrong place
Created attachment 137168 [details] [review] yay for testing..
shouldn't it still cache the thumbnail as this._iconPixbuf? or are future calls to it guaranteed to be pretty fast since it will have already generated a thumbnail at that point?
(answered on irc: "future calls should be rather fast as the thumbnail is cached") committed and pushed