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

This commit is contained in:
Scott Goodson
2016-10-05 00:13:34 -07:00
parent 2102568662
commit 67eaa171ce

View File

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