-
Notifications
You must be signed in to change notification settings - Fork 79
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
Very slow scrolling performance when used with large list of content #2
Comments
Hi @dev-horacebg, thank you for reporting the issue.
I'll wait for your results |
Thanks. Away for a few days but will give this a try on Wednesday. |
Hi @marica27 , Having followed your instructions and run the app again with the new version; it appears that the performance issues are exactly the same - still very slow with a large number of items. |
Hey @dev-horacebg -- Is your project open source at all, or do you happen to have any code you could share with us? It'd be great to dig into the CPU profiles using the Dart Observatory to help diagnose the exact problem with real code that's showing this behavior. Thanks! |
Hi @brianegan , Thanks for getting back to me. I've created a simple project so you can see the performance issues. I've set the number of items to 2000 at the moment (see Thanks for your help. |
Thanks @dev-horacebg! I'll try to pull that down in the next day or two and do some performance profiling :) |
I've noticed the same issue, luckily my project currently isn't loading too many items but it keeps growing size |
I display over 100k items very quickly. I do this by specifying the |
I have logged a related bug with the Flutter team. While setting itemExtent works, it's not ideal because it forces list items to be the same height, instead of being able to expand on click, or size to their content. This is not directly related to this plugin, but is a generic problem for any large lists that use jumpTo. Please +1 it! |
@dev-horacebg Can you pls tell me how you mad that UI? |
I confirm the issue. Implementing cache extend to a unreasonable number fixes it but causes jank in the app as it causes the whole list of widgets to pre-render. |
@dev-horacebg please were you able to get this working?? |
This is still an issue with latest stable flutter
|
Hey,
Thanks for putting this library together - exactly what I was looking for!
I'm currently building an app that displays a
ListView
with a lot of content (>10,000 items) and I'm running into some performance issues. The list itself is fine and runs at 60fps while being scrolled without using the scrollbar - even at excessive speed. When I try using the Draggable Scrollbar I notice the following spike on the performance profiler:Performance drops to 2.1fps.
Even when there are only 500 items in the list there are still fairly a significant number of frames dropped (down to ~40fps):
The list becomes incredibly slow to scroll - the screen often locks up and it can take quite a while to recover. I'm just trying to display a letter alongside an alphabetically sorted list of names - following the instruction provided in #1 .
Is there something wrong with my approach or am I working this component too hard?
The text was updated successfully, but these errors were encountered: