Skip to content

avoid multiple passes over the program when computing diagnostics for…#7228

Merged
vladima merged 2 commits into
masterfrom
bundledDeclarationEmit
Feb 24, 2016
Merged

avoid multiple passes over the program when computing diagnostics for…#7228
vladima merged 2 commits into
masterfrom
bundledDeclarationEmit

Conversation

@vladima
Copy link
Copy Markdown
Contributor

@vladima vladima commented Feb 24, 2016

fixes #7221

Comment thread src/compiler/program.ts
function getDeclarationDiagnostics(sourceFile: SourceFile, cancellationToken: CancellationToken): Diagnostic[] {
return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);
const options = program.getCompilerOptions();
if (!sourceFile || options.out || options.outFile) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would add a comment here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Feb 24, 2016

👍

@RyanCavanaugh
Copy link
Copy Markdown
Member

👍

vladima added a commit that referenced this pull request Feb 24, 2016
avoid multiple passes over the program when computing diagnostics for…
@vladima vladima merged commit 9b7d72c into master Feb 24, 2016
@vladima vladima deleted the bundledDeclarationEmit branch February 24, 2016 23:25
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Feb 25, 2016

@vladima can we port this to release-1.8

vladima added a commit that referenced this pull request Feb 25, 2016
avoid multiple passes over the program when computing diagnostics for…
@vladima
Copy link
Copy Markdown
Contributor Author

vladima commented Feb 25, 2016

@mhegazy #7244

vladima added a commit that referenced this pull request Feb 25, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

performance problem: --declaration and --outFile very slow

4 participants