Optimize DateOrderedListModel by batching notification calls
Add support for a BatchedListObservable. This is an implementation of ListObservable that incorporates the Android support library's BatchListUpdateCallback. This class has the following behavior: - It batches up all calls to insert, remove, or change based on whether or not the changes occur to adjacent elements. - It automatically flushes the updates when a non-adjacent or different type of operation occurs. - It supports manual flushing for when the batch operation is done by the caller. BUG=842345 Change-Id: I87dcd03ad31952582308a690fb3a3dab3a4fc26b Reviewed-on: https://chromium-review.googlesource.com/1070885 Commit-Queue: David Trainor <dtrainor@chromium.org> Reviewed-by:Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#561552}
Showing
Please register or sign in to comment