タグ

ブックマーク / zackoverflow.dev (1)

  • Why does tsgo use so much memory?

    5/27/2026 · 2,595 views Why does tsgo use so much memory? If you run tsgo on decently sized Typescript project, it’s not uncommon to see it using gigabytes of memory. Why is that? The short answer is: when multi-threading, tsgo makes a type checker per thread each type checker has its own state (types, symbols, etc.) this state is not shared as synchronizing it between threads is costly so each ty

    jay-es
    jay-es 2026/06/06
    tsgo のメモリ消費量が多い原因について。スレッドごとに型チェッカーを生成するが、スレッド間での同期コストを避けるため各スレッドで重複した情報を保持することになる。しかも割り当て後に解放されることがない
  • 1