-
Notifications
You must be signed in to change notification settings - Fork 49
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
Improving the performance of recycler View. #26
Labels
Comments
Suryansh1720001
added
IWOC24
easy
and removed
enhancement
New feature or request
gssoc
labels
Jan 11, 2024
Assign this to me!! |
sir kindly assign this to me, so that i can try to improve that .#GSSoc'24 |
Hi, i would like to work on this, can you please assign it to me ? Feature Request-- We can make current adapter generic so that only single adapter can be reused everywhere. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Clasical recycler view just displays the list that is been fetched from the remote or local repository . Whenever a new item is added to this list , the method "notifyDatasetChanged()" refreshes and displays all the list present in the recycler view. As a result , it causes poor in list performance.
Describe the solution you'd like
There is performant way to do this, by implementing Diffutil Callback , it helps to add an async list differ. It basically compares the oldList and newList , then performes very optimized process of updating the list. Thus it calculates the minimum number of steps required to convert the old list to an updated new list.
Describe alternatives you've considered
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: