microsoft / microsoft/TypeScript
`builder.getDeclarationDiagnostics` performance regression since 5.6
Ouverte
@sheetalkamat y travaille déjà.
Depuis le 16/1/2025.
Needs Investigation
- Langage dominant
- Go
- Étoiles
- 111k
- Forks
- 14.4k
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 117
Description
🔎 Search Terms
Starting with version 5.6, the builder.getDeclarationDiagnostics method has become slower when invoked to retrieve diagnostics for a single SourceFile.
Here are the timing comparisons:
TypeScript Version: 5.5.2
builder.getDeclarationDiagnostics(): 2.247sbuilder.getDeclarationDiagnostics(builder.getSourceFiles()[0]): 0.19msbuilder.getSourceFiles().forEach(sf => builder.getDeclarationDiagnostics(sf)): 1.655s
TypeScript Version: 5.7.2
builder.getDeclarationDiagnostics(): 1.675sbuilder.getDeclarationDiagnostics(builder.getSourceFiles()[0]): 1.791sbuilder.getSourceFiles().forEach(sf => builder.getDeclarationDiagnostics(sf)): 2.824s
🕗 Version & Regression Information
- This changed between versions 5.5 and 5.6
- This changed in commit or PR https://github.com/microsoft/TypeScript/pull/59065
💻 Code
https://github.com/alan-agius4/ts-getDeclarationDiagnostics
🙁 Actual behavior
Regression in performance
🙂 Expected behavior
Similar performance
Additional information about the issue
No response
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.