cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.43k forks source link

Use DiffUtil for Appending List Items #460

Open jackcsk opened 7 years ago

jackcsk commented 7 years ago

In reference to insertInternal(newList, currentList) method: https://github.com/cymcsg/UltimateRecyclerView/blob/master/UltimateRecyclerView/ultimaterecyclerview/src/main/java/com/marshalchen/ultimaterecyclerview/UltimateViewAdapter.java#L399

Ever consider do use DiffUtil in the support library? Reference: https://developer.android.com/reference/android/support/v7/util/DiffUtil.html

cymcsg commented 7 years ago

Grateful for this useful advice .
I think DiffUtil could have better performance.