[ASDisplayNode] Allow display-scheduling method to be called concurrently.

This commit is contained in:
Scott Goodson
2016-02-13 00:58:56 -08:00
parent f3696cfef0
commit fce722b0c8
2 changed files with 26 additions and 15 deletions

View File

@@ -168,7 +168,6 @@ static void *kASSizingQueueContext = &kASSizingQueueContext;
for (NSUInteger j = 0; j < nodes.count && j < indexPaths.count; j += kASDataControllerSizingCountPerProcessor) {
NSInteger batchCount = MIN(kASDataControllerSizingCountPerProcessor, indexPaths.count - j);
dispatch_block_t allocationBlock = ^{
for (NSUInteger k = j; k < j + batchCount; k++) {
ASCellNodeBlock cellBlock = nodes[k];