Supports incremental build in tsc --b --w mode#29161
Merged
sheetalkamat merged 23 commits intomasterfrom Jan 17, 2019
Merged
Conversation
…ide detailed information on watch invokations
…ncremental builds
…on to set Program in state to undefined for storing.
This helps in storing the semantic diagnostics
… of incremental build This ensures that after `tsbuild` after incremental build of `tsbuild -w` doesnt result in unnecessary rebuilds
…oject reference with prepend since it cant tell changes in js/map files
…dling These will fail since its still TODO
…state This helps us revert to state where we pretend as if emit is not done (since we do not do emit if there are errors)
9 tasks
ajafff
reviewed
Dec 26, 2018
Member
Author
|
Ping @sandersn @rbuckton @weswigham @DanielRosenwasser Would like to get this in soon. |
sandersn
reviewed
Jan 10, 2019
sandersn
reviewed
Jan 10, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 14, 2019
sandersn
reviewed
Jan 15, 2019
sandersn
reviewed
Jan 15, 2019
sandersn
reviewed
Jan 15, 2019
sandersn
reviewed
Jan 15, 2019
Member
sandersn
left a comment
There was a problem hiding this comment.
I looked over everything but I need to learn more about watch mode + tsbuild in person before signing off.
rbuckton
suggested changes
Jan 17, 2019
rbuckton
suggested changes
Jan 17, 2019
rbuckton
reviewed
Jan 17, 2019
rbuckton
approved these changes
Jan 17, 2019
Member
Author
|
@sandersn comments? |
sandersn
approved these changes
Jan 17, 2019
|
Just wondering, wouldn't it be even faster if the cache was also based on file size as first check before doing the actual hash? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some notes:
Two things can be done:
EmitAndSemanticDiagnosticsBuilderProgram's existing assumption was not satisfied (that is changed files are already emitted before getting semantic diagnostics). So in such case, we store list of files to emit later so as to help with that case.Here are the perf numbers:
Local change::
Local change: