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.