Optimized item frame calculations and layoutAttributesForElementsInRect

Optimised item frame calculations and layoutAttributesForElementsInRect, even with 1000 sections it runs smooth