gnome-shell/js/misc
Siegfried-Angel Gevatter Pujals f215935d2d Speed up initialization of DocInfo objects
We achieve this with two changes:

 - Move the Shell.get_thumbnail call in DocInfo from _init
   to getIcon, so that it isn't executed until it's actually
   needed.
   (If caching the output of said call permanently is desired
   we could still do it on the first getIcon invocation, but
   I don't believe this is necessary given that looking up an
   already generated icon is pretty fast and this also gives
   us an updated icon in case the file changes.)

 - More importantly, we ommit the get_thumbnail call in case
   the URI doesn't start with file://. Looking up, for example,
   an http:// URI is very slow, and doesn't give us an icon anyway.

http://bugzilla.gnome.org/show_bug.cgi?id=586539
2009-06-22 09:41:06 -04:00
..
appInfo.js Make ShellAppMonitor and ShellAppSystem singletons, remove unused code in appDisplay 2009-06-18 12:27:19 -04:00
docInfo.js Speed up initialization of DocInfo objects 2009-06-22 09:41:06 -04:00
Makefile.am Split appDisplay and docDisplay into "model" and "view" parts 2009-06-16 18:50:42 -04:00