feat: add Value.Equal bail-out check before reconciliation

Add TypeBox Value.Equal deep-comparison as first optimization layer
in reconcileProps. When a fiber's cached node is deep-equal to the
next node, skip prepareUpdate, commitUpdate, and children
reconciliation entirely. New cachedNode field on Fiber stores the
last reconciled node for comparison.
This commit is contained in:
2026-05-18 17:25:02 +00:00
parent 1e0abb0900
commit 23db3775ad
8 changed files with 283 additions and 41 deletions

View File

@@ -210,6 +210,7 @@ describe("commitMutations direct", () => {
effect: null,
signalDisposers: [],
prevProps: null,
cachedNode: null,
};
}