mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 09:31:11 +08:00
Store \"dirty\" and \"dirty descendant\" flags in every node instead of only marking root node as invalid
Summary: Right now invalidate always tell the root node that the tree is dirty, and next update will traverse the entire tree in search of changes. While this works correctly, it's not the most efficient implementation. It is more efficient to store dirty flag in every node, and skip entire subtrees if this node and all descendants are already up to date. This diff is a first step towards that optimization. Reviewed By: ahmedre Differential Revision: D2955197
This commit is contained in:
committed by
Ahmed El-Helw
parent
4c92a0b962
commit
ca7a3519cf
@@ -418,7 +418,6 @@ public class FlatUIImplementation extends UIImplementation {
|
||||
}
|
||||
|
||||
super.calculateRootLayout(rootNode);
|
||||
rootNode.markUpdated(false);
|
||||
mStateBuilder.applyUpdates(eventDispatcher, rootNode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user