THSpringyCollectionView icon indicating copy to clipboard operation
THSpringyCollectionView copied to clipboard

Super laggy and inefficient if number of cells > 100

Open ssfking opened this issue 10 years ago • 3 comments

Starts lagging really badly after 100 cells. Did some debugging, found out that PrepareLayout gets called like every 0.01 second on scrolling... in other words, collectionview asks for all cells for their respective height every 0.01 second - performance gets really bad if you implement customized cell height.

Any chance this can get fixed?

ssfking avatar Mar 24 '14 23:03 ssfking

Unfortunately I do not have any spare time to spend on this project at the moment.

The project is mostly a experiment that I decided to put online to give others a place to start when building this kind of UI. It is unlikely that I will work on it in the near future. Contributions are welcomed though!

tristanhimmelman avatar Mar 25 '14 01:03 tristanhimmelman

it's probably because you calculate size for each cell each time when sizeForItem is called, and it's called very often!

badeleux avatar Sep 08 '14 11:09 badeleux

YES,Above is right!

KittenYang avatar Sep 08 '14 13:09 KittenYang