Skip to content

Do not trigger resolution cache invalidation if watch is triggered by program file emit#21149

Merged
sheetalkamat merged 2 commits into
masterfrom
tweakRecompileConditions
Jan 12, 2018
Merged

Do not trigger resolution cache invalidation if watch is triggered by program file emit#21149
sheetalkamat merged 2 commits into
masterfrom
tweakRecompileConditions

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

If the number of source files in the resolution cache are more than maxNumberOfFilesToIterateForInvalidation (which is 256) then any file addition/removal triggers the new program creation to optimize for having to iterate through lot more resolutions.
This ensures that if file added/removed is from program emit, we ignore those and do not recompile the program
Fixes #20934

@sheetalkamat sheetalkamat merged commit b529d5b into master Jan 12, 2018
@sheetalkamat sheetalkamat deleted the tweakRecompileConditions branch January 12, 2018 00:17
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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.

2 participants