Remove the printf whining when we select something which is already selected. (Could this be being hit for prim_objs of a complex as well as attributes? I got a LOT of print output on my console). (Lots of printf is slow).
Added a test to avoid invalidating when deselecting an already deselected object (for symmetry with the selecting case)
Moved the bounds check outside the inner for loop in s_page_objects_in_regions()
Could you see if any of these have helped? Redraw isn't super snappy for me now, but it was never so slow I noticed a problem in the first place.
I've committed a few obvious fixes:
Remove the printf whining when we select something which is already selected. (Could this be being hit for prim_objs of a complex as well as attributes? I got a LOT of print output on my console). (Lots of printf is slow).
Added a test to avoid invalidating when deselecting an already deselected object (for symmetry with the selecting case)
Moved the bounds check outside the inner for loop in s_page_ objects_ in_regions( )
Could you see if any of these have helped? Redraw isn't super snappy for me now, but it was never so slow I noticed a problem in the first place.