Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super laggy and inefficient if number of cells > 100 #11

Open
ssfking opened this issue Mar 24, 2014 · 3 comments
Open

Super laggy and inefficient if number of cells > 100 #11

ssfking opened this issue Mar 24, 2014 · 3 comments

Comments

@ssfking
Copy link

ssfking commented Mar 24, 2014

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?

@tristanhimmelman
Copy link
Owner

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!

@badeleux
Copy link

badeleux commented Sep 8, 2014

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

@KittenYang
Copy link

YES,Above is right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants