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
…
…
…
…
…
The file is empty.
Description
Languages
C
49.2%
JavaScript
47.4%
SCSS
1.4%
Meson
0.8%
Python
0.6%
Other
0.4%