• Kristian Rietveld's avatar
    quit maintaining the iter on every iteration, only get the iter when we · ed5fe67f
    Kristian Rietveld authored
    2005-07-13  Kristian Rietveld  <kris@gtk.org>
    
    	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): quit
    	maintaining the iter on every iteration, only get the iter when
    	we are about to call the foreach_func. Gives us a 10x speedup,
    	since maintaining iters is a lot more expensive than maintaining
    	paths. We lose a bit of sanity checking though. Thanks go to
    	Billy Biggs for pointing this out.
    ed5fe67f
gtktreeselection.c 40.3 KB