Compiling VSCode project substantially faster with Panel closed
See original GitHub issueI recently noticed that my project builds substantially faster with the Panel closed. 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
It appears the Parse Time, Bind Time and Check Time are much faster with Panel closed.
The steps I use to build:
- CTRL + SHIFT + B
- Select “Build Project”
- Panel opens by default
- Close Panel with CTRL + J
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Project",
"type": "shell",
"group": "build",
"problemMatcher": ["$tsc"],
"command": [
"tsc -b --extendedDiagnostics project/tsconfig.json"
]
]
}
Output of --extendedDiagnostics with Panel open (edited same file to recreate build):
Files: 158
Lines of Library: 27205
Lines of Definitions: 37867
Lines of TypeScript: 21539
Lines of JavaScript: 0
Lines of JSON: 0
Lines of Other: 0
Nodes of Library: 118033
Nodes of Definitions: 94131
Nodes of TypeScript: 61644
Nodes of JavaScript: 0
Nodes of JSON: 0
Nodes of Other: 0
Identifiers: 96568
Symbols: 66162
Types: 9508
Instantiations: 4692
Memory used: 118831K
Assignability cache size: 1584
Identity cache size: 59
Subtype cache size: 109
Strict subtype cache size: 350
I/O Read time: 0.10s
Parse time: 5.02s <<
ResolveModule time: 0.30s <<
ResolveTypeReference time: 0.04s <<
Program time: 5.97s <<
Bind time: 2.38s <<
Check time: 11.32s <<
transformTime time: 1.19s <<
commentTime time: 0.00s
printTime time: 0.19s
Emit time: 0.19s
Source Map time: 0.01s
I/O Write time: 0.00s
Total time: 19.86s
When Panel closed:
Files: 158
Lines of Library: 27205
Lines of Definitions: 37867
Lines of TypeScript: 21539
Lines of JavaScript: 0
Lines of JSON: 0
Lines of Other: 0
Nodes of Library: 118033
Nodes of Definitions: 94131
Nodes of TypeScript: 61644
Nodes of JavaScript: 0
Nodes of JSON: 0
Nodes of Other: 0
Identifiers: 96568
Symbols: 66162
Types: 9508
Instantiations: 4692
Memory used: 132751K
Assignability cache size: 1584
Identity cache size: 59
Subtype cache size: 109
Strict subtype cache size: 350
I/O Read time: 0.02s
Parse time: 1.34s <<
ResolveModule time: 0.06s <<
ResolveTypeReference time: 0.01s <<
Program time: 1.55s <<
Bind time: 0.74s <<
Check time: 2.27s <<
transformTime time: 0.20s <<
commentTime time: 0.00s
printTime time: 0.04s
Emit time: 0.04s
Source Map time: 0.00s
I/O Write time: 0.00s
Total time: 4.60s
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Compiling VSCode project substantially faster with Panel closed
I recently noticed that my project builds substantially faster with the Panel closed (CTRL+J). It opens automatically on build and I closed ......
Read more >Is Your VS Code Extension Slow? Here's How to Speed it Up!
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >Visual Studio Code User Interface
A quick overview of the Visual Studio Code user interface. Learn about the editor, window management, and special UI to handle source control, ......
Read more >bracket_Pair_Colorization | TypeScript LibHunt
This page summarizes the projects mentioned and recommended in the original post ... Ask HN: Compiling VSCode project substantially faster with Panel closed....
Read more >Live Coding - Unreal Engine Documentation
... as an alternative, Live Coding is significantly faster and more flexible. ... but Live Coding will cause crashes when the editor is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I ran two performance profiles running on code-insiders. One with panel open and other with panel closed. Hope they help
Profile-20220927T120823-panel-open.json.txt took 29.14s
Profile-20220927T121903-panel-closed.json.txt took 18.71s
The timing is no different when OUTPUT tab focused during build
Profile-20220927T155221-panel-open-output-tab.json.txt