Acknowledgements
Minimal reproduction URL
https://github.com/survev/survev/
Problem & expected behavior (under 200 words)
I recently noticed that tsx has been around 2 times slower on my project, and git bisected it to commit 1d7e528
It seems to be something related to the import loader so i can't really provide a "minimum" reproduction URL because its only noticeable on projects that imports large amounts of files
Steps to reproduce:
- clone the project from the reproduction URL ( https://github.com/survev/survev/ )
- Install dependencies with
pnpm install
- cd into
server directory
- run
tsx src/gameServer.ts or pnpm dev:game script
- wait for a log that has
Game Process Manager | [INFO] Process {PID} created in {TIME}ms
Observed behavior:
Since commit 1d7e528 (and release v4.21.1) it will take way longer to create the game process
On my Arch Linux desktop system it went from around 800ms to almost 2 seconds:
And on an M4 Macbook with MacOS it went from around 300ms to around 900ms
Tested with nodejs v24.16.0 on both systems
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
Acknowledgements
Minimal reproduction URL
https://github.com/survev/survev/
Problem & expected behavior (under 200 words)
I recently noticed that tsx has been around 2 times slower on my project, and git bisected it to commit 1d7e528
It seems to be something related to the import loader so i can't really provide a "minimum" reproduction URL because its only noticeable on projects that imports large amounts of files
Steps to reproduce:
pnpm installserverdirectorytsx src/gameServer.tsorpnpm dev:gamescriptGame Process Manager | [INFO] Process {PID} created in {TIME}msObserved behavior:
Since commit 1d7e528 (and release v4.21.1) it will take way longer to create the game process
On my Arch Linux desktop system it went from around 800ms to almost 2 seconds:
And on an M4 Macbook with MacOS it went from around 300ms to around 900ms
Tested with nodejs v24.16.0 on both systems
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project