Commit f9e4618b authored by Committed by Matthias Clasen
Two optimizations for icon cache lookups.
2007-12-03 Matthias Clasen <email@example.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. svn path=/trunk/; revision=19099
Showing with 75 additions and 38 deletions