Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Performance improvement #11
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.