gtk+ r19099 - in trunk: . gtk



Author: matthiasc
Date: 2007-12-03 17:44:27 +0000 (Mon, 03 Dec 2007)
New Revision: 19099
ViewCVS link: http://svn.gnome.org/viewcvs/gtk+?rev=19099&view=rev

Modified:
   trunk/ChangeLog
   trunk/gtk/gtkiconcache.c
   trunk/gtk/gtkiconcache.h
   trunk/gtk/gtkicontheme.c
Log:
2007-12-03  Matthias Clasen  <mclasen redhat com>

        Two optimizations for icon cache lookups.

        * gtk/gtkiconcache.[hc]:
        * gtk/gtkicontheme.c: Remember the directory index for
        subdirectories, instead of running over the directory list
        again and again.

        * gtk/gtkiconcache.c (find_image_offset): Remember the last
        chain and try it first; this helps with the the usage patterns
        in gtkicontheme.c, where the same icon is queried for a lot
        of subdirectories.






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