Skip to content
Source
Sign inSign up
TanStack/router

perf(router): fuse AST cloning and provenance construction #8523

OpenSheraff(GitHub profile, opens in a new tab)wants to merge 4 commits intocodex/yuku-evaluation fromcodex/fuse-clone-provenanceopened

Showing 58 changed files with 182 additions and 0 deletions (loading 55).

x
0 of 58 viewed, 58 left
6 additions and 0 deletions.changeset/spicy-keys-throw.mdAdded
View file
@@ -0,0 +1,6 @@
+---
+'@tanstack/router-plugin': patch
+'@tanstack/router-utils': patch
+---
+​
+Fuse AST cloning with provenance construction to reduce compiler copying and traversal work while preserving independent output trees.
28 additions and 0 deletionsbenchmarks/compiler/README.mdModified
View file
@@ -468,3 +468,31 @@
counts, output counts and generated-byte totals; see `*-yuku-after.json`.
The destructuring table deliberately omits the earlier cold Babel number to
avoid comparing different warmup/iteration configurations.
+​
+## Fused AST cloning
+​
+See the [fused cloning evaluation](fused-cloning.md) for final measurements,
+validation, attribution, and the peak-memory limitation.
+​
+`clone.mjs` measures cloning independently of analysis and printing. Build the
+selected checkout's router-utils through Nx first, then run each case in a fresh
+process with the same Node version and parameters in both checkouts:
+​
+```sh
+node --expose-gc benchmarks/compiler/clone.mjs --workspace /path/to/checkout --case route