from Hacker News

Ask HN: Compiling VSCode project substantially faster with Panel closed

by tmpfile on 9/5/22, 8:08 PM with 6 comments

I recently noticed that my project builds substantially faster with the Panel closed (CTRL+J). It opens automatically on build and I closed it the other day and noticed a huge performance increase. I pretty much use default tsconfig.json configuration. Wondering if anyone else can recreate?

Timing with panel open: 19.86s Timing with panel closed: 4.60s

I filed an issue at https://github.com/microsoft/vscode/issues/160118

  • by tmpfile on 9/5/22, 10:24 PM

    Wanted to add a little more detail and make the link accessible [0] which also shows the output from --extendedDiagnostics. The Panel is the window where the output from a build is shown [1]. It is displayed automatically on build. It's visibility can be toggled with CTRL+J (I'm on Linux) or from View > Appearance > Panel. When it's hidden the build is x5 faster with no other changes.

    Wondering if anyone else can confirm faster builds with it hidden?

    [0] https://github.com/microsoft/vscode/issues/160118

    [1] https://code.visualstudio.com/docs/editor/tasks

  • by rowanG077 on 9/5/22, 10:02 PM

    My initial instinct: are your build artifacts indexed by the git plugin? Try git ignoring everything not relevant.