Performance improvement #11

merged 3 commits into from Jul 14, 2011


None yet
2 participants

siuying commented Jul 14, 2011


When I testing on an older iPod, i notice the scrolling performance on a larger list is slower than it should be.

I found that when the grid is scrolling, Core Animation will calls [MMGridView layoutSubviews] repeatly, which in turns call [MMGridView reloadData], which will remove all subviews and add all subviews again.

This patch try to separate layoutSubviews and reloadData: layoutSubviews only layout, and reloadData will handle creation of subviews. This improve the performance of my apps from 7fps to 50 fps on scrolling.

provideal added a commit that referenced this pull request Jul 14, 2011

Merge pull request #11 from siuying/master
Performance improvement

@provideal provideal merged commit 98e8c85 into provideal:master Jul 14, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment