Reduce block invocations, other small performance bumps

This commit is contained in:
Adlai Holler
2016-07-12 13:50:20 -07:00
parent e40597ec47
commit 2e19d11350
8 changed files with 103 additions and 77 deletions

View File

@@ -113,11 +113,11 @@
range.start = currentIndexPath;
range.end = currentIndexPath;
[indexPaths enumerateObjectsUsingBlock:^(NSIndexPath *indexPath, NSUInteger idx, BOOL *stop) {
for (NSIndexPath *indexPath in indexPaths) {
currentIndexPath = [indexPath ASIndexPathValue];
range.start = ASIndexPathMinimum(range.start, currentIndexPath);
range.end = ASIndexPathMaximum(range.end, currentIndexPath);
}];
}
return range;
}