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

This commit is contained in:
Scott Goodson
2016-10-05 00:13:34 -07:00
parent b6c084ba45
commit c04e876326

View File

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