twitter/twui — Issue #82: Overriding drawRect & memory
Author: mrjjwright
Created: 2011-11-17 03:04:04+00:00
State: open

Is there a reason that overriding drawRect with an empty implementation in an otherwise blank TUIView increases memory usage substantially? This is probably a total newb question and has to do with the way CALayer handles content but I am totally seeing a 40 meg difference in memory when I add a few hundred TUIViews to a scroll view that do and don't override drawRect, even with an empty implementation?

I might remove this question here in a little bit as as I do some further testing. Sorry to waste anybody's time but if somebody has a short answer that would be great.