From 71bd62cf3d5c684dec5e34fde2671598ef33dbdf Mon Sep 17 00:00:00 2001 From: Sheraff Date: Tue, 10 Nov 2026 21:41:48 +0100 Subject: [PATCH] chore(changeset): one entry for the rewrite tree's scaling fixes Co-Authored-By: Claude Opus 5.5 --- .changeset/compiler-region-tree.md | 4 +++- .changeset/compiler-rewrite-walk.md | 7 ------- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 .changeset/compiler-rewrite-walk.md diff --git a/.changeset/compiler-region-tree.md b/.changeset/compiler-region-tree.md index db85b8e65f..af471023b1 100644 --- a/.changeset/compiler-region-tree.md +++ b/.changeset/compiler-region-tree.md @@ -1,5 +1,7 @@ --- '@tanstack/router-utils': patch +'@tanstack/router-plugin': patch +'@tanstack/start-plugin-core': patch --- -Compiling a module with many server functions, or many other changes the compiler makes, no longer takes time that grows with the square of their number: a module of 1,600 server functions took about 10 times as long as one of 400, and now takes about 4 times as long. Outputs are unchanged. +Compiling a module with many server functions, or many other changes the compiler makes, no longer takes time that grows with the square of their number, whether their handlers stay in place or are hoisted: a module of 1,600 server functions took about 10 times as long as one of 400, and now takes about 4 times as long. Outputs are unchanged. diff --git a/.changeset/compiler-rewrite-walk.md b/.changeset/compiler-rewrite-walk.md deleted file mode 100644 index d2ced15403..0000000000 --- a/.changeset/compiler-rewrite-walk.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@tanstack/router-utils': patch -'@tanstack/router-plugin': patch -'@tanstack/start-plugin-core': patch ---- - -The compiler renders every output, and works out what each part of a module reads there, through one walk of its rewrite tree. A module of many server functions written in place compiles in time that grows with their number (a module of 1,600 took about 10 times as long as one of 400, and now takes about 4 times as long). Outputs are unchanged.