[ASDisplayNode] Optimize pendingDisplayNodes check using isEmpty (ASWeakSet).

This commit is contained in:
Scott Goodson
2016-10-05 00:13:34 -07:00
parent 4dfe2a5a66
commit b928e79cb5

View File

@@ -2247,7 +2247,7 @@ static NSInteger incrementIfFound(NSInteger i) {
[_pendingDisplayNodes removeObject:node];
if (_pendingDisplayNodes.count == 0) {
if (_pendingDisplayNodes.isEmpty) {
[self hierarchyDisplayDidFinish];
if (_placeholderLayer.superlayer && ![self placeholderShouldPersist]) {