[Nautilus-list] Re: Icon factory caching



On Fri, 5 Oct 2001, Alex Larsson wrote:

> Got this down to:
> 
> 16:17:54.020863 stat64("/opt/nautilus/share/pixmaps/nautilus/redhat/i-web.svg", 0xbffff0f0) = -1 ENOENT (No such file or directory)
> 16:17:54.028742 stat64("/opt/nautilus/share/pixmaps/i-web.xml", 0xbffff0e0) = -1 ENOENT (No such file or directory)
> 16:17:54.028963 lstat64("/opt/nautilus/share/pixmaps/nautilus/i-web-72.png", {st_mode=S_IFREG|0644, st_size=10963, ...}) = 0
> 16:17:54.029142 open("/opt/nautilus/share/pixmaps/nautilus/i-web-72.png", O_RDONLY) = 18
> 
> That is only 58 stats taking 0.008279 seconds. I.e. a 10x speedup. And 
> nautilus *does* feel snappier with this, although i have no hard data.

Forgot the new stats data:

grep stat /tmp/nautilus2.log  | wc -l                
  29715
grep stat /tmp/nautilus2.log  | grep -v pixmaps | wc -l 
  22689
grep stat /tmp/nautilus2.log  | grep pixmaps | wc -l 
   7026

23% is still a whole lot, but clearly a lot more sane.

/ Alex






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]