Questions regarding 'Improving CollectionView Scrolling' #546
F-Goncalves
started this conversation in
General
Replies: 2 comments 4 replies
-
Oh! You may have just discovered the missing link! I still see some occasional stuttering when scrolling on Android, albeit is better than the out-of-the box implementation, and I could never figure out why. This may be it! I'll play around with this a bit and let you know what I find! |
Beta Was this translation helpful? Give feedback.
2 replies
-
Confirmed that we should be reusing Not re-using DataTemplates causes a ton of memory allocation which leads to a ton of garbage collection (especially on Android). Merging the updates in this PR: #552 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @brminnick
I read your blog post about improving collection view scrolling and noticed that in your DataTemplateSelector you are creating a new instance of your DataTemplate whenever OnSelectTemplate is called.
However, the Xamarin documentation for DataTemplateSelectors explicitly states:
Have you seen any evidence of this being the case for the GitTrends-App? I am considering your approach to improving CollectionView scrolling in my app, but stumbled upon above statement.
Beta Was this translation helpful? Give feedback.
All reactions