forked from Instagram/IGListKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Experimenting with a new change. We have observed instances of very large (3k+) lists stalling, even on modern devices. This is especially noticeable if the models being diffed are: - Immutable - `performUpdates:` often and models are alloc/init'd each time - The `isEqualToDiffableObject:` is sort of expensive (many `-[NSString isEqualToString:]` across thousands of models or something) Instead of just rolling this out, I plan on experimenting with results and seeing how much of a performance and stability boost we gain w/ this. Things to measure: - Scroll performance - CPU stalls - WatchDog kills on older devices Closes Instagram#841 Reviewed By: amonshiz Differential Revision: D5364127 Pulled By: rnystrom fbshipit-source-id: 31d50d2e4b3c7c73584d6ec521a9047efd83f315
- Loading branch information
1 parent
9f5bf3f
commit 1d773aa
Showing
2 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters