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

Dynamic heights #4

Open
LouisSyfer opened this issue Jun 28, 2022 · 2 comments
Open

Dynamic heights #4

LouisSyfer opened this issue Jun 28, 2022 · 2 comments

Comments

@LouisSyfer
Copy link

Hi Felipe,

Congratulations for your speedy list. It works better than others like "big list" for example. I tried it with fixed height item and the performances were there !
But... I meet the same problem as for project like "big list". When I try too adapt it to a flatlist with different heights (photos, videos, etc.) the result is horrible. In fact, I don't understand the logic. Please which datas can I merely define to use it with dynamic heights ? I can't adapt the example you show on Medium with my own properties.

Thanks in advance for the reply.

@FSPinho
Copy link
Owner

FSPinho commented Jul 2, 2022

Hi @LouisSyfer.
Thanks for your comment.

The performance relies on the recycling of the elements. Then, if each of them is rendering complex trees or executing heavy operations, imagine that it will be multiplied hundreds of times while scrolling.
If you can provide a minimal code example, or even better, a working repository, then we could analyze it for your specific case.
In the meanwhile, I'd recommend you to play with the values of initialBatchSizeand recyclableItemsCount to improve the performance.

Cheers,
Felipe

@LouisSyfer
Copy link
Author

Hi Felipe,

Ok I see...

Thanks for the answer !

Regards

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

2 participants