Hello,
I am just trying out TNB and am noticing a big increase in memory usage for tsserver (semantic), measured vs TS6.
On my machine with stock typescript@6.0.3, tsserver settles at around ~2 GB memory usage shortly after opening a single .vue file in the project. The project is a medium-large sized Nuxt project with around 300 .vue and 700 .ts files.
With TNB on the same project, tsserver settles at around ~4 GB at a comparable point (one file open, no editing yet). There is only one tsserver (semantic) process running and it is correctly named as TNB (not stock TS) in the process manager.
Is this expected with tsgo or could this be a bug in TNB? If needed I can try to work on a repro or could run some debug/profiling commands on my machine.
Related: While investigating this I found this article about tsgo's memory usage. They found that using the --singleThreaded arg helped with memory usage. Is there a way to pass those args down to TNB for testing?
Machine: M1 Mac with 8GB RAM
IDE: Cursor
TNB version: 6.0.3-bridge.7.tsgo.7.0.2
Thank you!
Hello,
I am just trying out TNB and am noticing a big increase in memory usage for
tsserver (semantic), measured vs TS6.On my machine with stock
typescript@6.0.3, tsserver settles at around ~2 GB memory usage shortly after opening a single .vue file in the project. The project is a medium-large sized Nuxt project with around 300 .vue and 700 .ts files.With TNB on the same project, tsserver settles at around ~4 GB at a comparable point (one file open, no editing yet). There is only one
tsserver (semantic)process running and it is correctly named as TNB (not stock TS) in the process manager.Is this expected with tsgo or could this be a bug in TNB? If needed I can try to work on a repro or could run some debug/profiling commands on my machine.
Related: While investigating this I found this article about tsgo's memory usage. They found that using the
--singleThreadedarg helped with memory usage. Is there a way to pass those args down to TNB for testing?Machine: M1 Mac with 8GB RAM
IDE: Cursor
TNB version: 6.0.3-bridge.7.tsgo.7.0.2
Thank you!