microsoft / microsoft/TypeScript
`builder.getDeclarationDiagnostics` performance regression since 5.6
オープン
@sheetalkamat がすでに取り組んでいます。
2025年1月16日 から。
Needs Investigation
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
🔎 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。