mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 17:28:22 +00:00
Remove the unnecessary assert which would affect IGListKit perf
Summary: This assert was hoping to find if there are any duplicates from the `fromObjects`. However, from the finding, we did not see any assertion or trace that this is the case. The `objectsWithDuplicateIdentifiersRemoved` is actually doing extra work during updates. We should remove this for the sake of better scroll perf and faster UI update. Reviewed By: calimarkus Differential Revision: D14339124 fbshipit-source-id: ff40fd23a05640058673d46f63a9e4bf516dd3f6
This commit is contained in:
parent
3f5047dd9a
commit
9e59bdea11
1 changed files with 0 additions and 2 deletions
|
|
@ -131,8 +131,6 @@
|
|||
executeCompletionBlocks(NO);
|
||||
return;
|
||||
}
|
||||
|
||||
IGAssert(objectsWithDuplicateIdentifiersRemoved(fromObjects).count == fromObjects.count, @"The fromObjects has duplicate identifiers (it should already be dedupepd at this point).");
|
||||
|
||||
NSArray *toObjects = nil;
|
||||
if (toObjectsBlock != nil) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue