0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

Compare commits

..

1 commit

Author SHA1 Message Date
Manuel Schiller
0ef87eec0e perf(router-core): use fast-property records for SSR
Select Object.setPrototypeOf({}, null) in createNull only for the existing compile-time server branch. Keep client dictionary allocation and all direct allocation sites unchanged. Add null-prototype/special-key coverage for both branches and an opt-in 24-case small/large/dynamic record benchmark.

Against f38d8d0ede, six fresh paired SSR repetitions reduced CPU by 7.41% for shared params (95% CI -12.28% to -2.27%), 14.25% for unique params (-17.52% to -10.85%), and 9.24% for param updaters (-12.73% to -5.60%). Wall intervals also show speedups. Three unique-param allocation profiles averaged 1222705899 to 1125029176 bytes over 300 batches (-8.0%).

All 18 client bundle fixtures are byte-identical in raw/gzip/initial-gzip/Brotli. Rejected blanket client expansion because canonical CPU regressed about 21.5%; removed the separate parameter-target hunk after attribution found no demonstrated incremental speedup. Fast properties are not a universal dictionary optimization.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-10 23:05:23 +02:00
2667 changed files with 38662 additions and 107561 deletions

Some files were not shown because too many files have changed in this diff Show more