[x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
Context
Upon upgrading from typescript version 5.4.2 to 5.5.2 we are seeing a large performance regression within our local editor (vscode). We are seeking guidance on what might be causing this regression and how we can find a solution to allow us to proceed with the upgrade. We are not seeing any performance impact when running the actual typescript compilation build (e.g. running tsc -b project-references.tsconfig.json).
We have tested this in multiple versions, such as 5.6.0 and 5.7.0, and are still seeing the same regression. I have also tested typescript version 5.4.5 and have not experienced any regressions, which makes me believe the regression occurred somewhere between 5.4.5 and 5.5.2.
We are seeing this regression locally within our IDEs (we predominately use vscode). Our monorepo has many sub-packages that are separate TS projects. We have tooling in place that randomly selects and tests the elapsed time it takes a TS project to show type definitions (by looking at the updateOpen elapsed time). For simplicity's sake, I will focus on a single TS project where we are seeing a large regression.
Typescript Version 5.4.2
Typescript Version 5.5.2
Percentage Increase
74.29ms
136.64ms
+84%
updateOpen: elapsed time (in milliseconds)
Typescript Version 5.4.2
updateOpen: elapsed time (in milliseconds) (mean average): 74.29.
Acknowledgement
Comment
Context
Upon upgrading from typescript version
5.4.2
to5.5.2
we are seeing a large performance regression within our local editor (vscode). We are seeking guidance on what might be causing this regression and how we can find a solution to allow us to proceed with the upgrade. We are not seeing any performance impact when running the actual typescript compilation build (e.g. runningtsc -b project-references.tsconfig.json
).We have tested this in multiple versions, such as
5.6.0
and5.7.0
, and are still seeing the same regression. I have also tested typescript version5.4.5
and have not experienced any regressions, which makes me believe the regression occurred somewhere between5.4.5
and5.5.2
.Typescript settings
We are using the same typescript settings mentioned in a previous ticket that we opened (https://github.com/microsoft/TypeScript/issues/59780).
Regression
We are seeing this regression locally within our IDEs (we predominately use vscode). Our monorepo has many sub-packages that are separate TS projects. We have tooling in place that randomly selects and tests the elapsed time it takes a TS project to show type definitions (by looking at the
updateOpen
elapsed time). For simplicity's sake, I will focus on a single TS project where we are seeing a large regression.Typescript Version 5.4.2 updateOpen: elapsed time (in milliseconds) (mean average): 74.29.
Running
tsc -p projectDir/tsconfig.json --extendedDiagnostics
produces:The below are snippets taken from the TS Server logs in vscode:
The below screenshot is from running
tsc -p projectDir/tsconfig.json --generateTrace
Typescript Version 5.5.2 updateOpen: elapsed time (in milliseconds) (mean average): 136.64
Running
tsc -p projectDir/tsconfig.json --extendedDiagnostics
produces:The below are snippets taken from the TS Server logs in vscode:
The below screenshot is from running
tsc -p projectDir/tsconfig.json --generateTrace
If you require any additional info, please let me know and I will work on getting it for you