-
Notifications
You must be signed in to change notification settings - Fork 832
Cache parsing results in incremental build #14852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ec16126
first working attempt
majocha 0b9a331
try cwt
majocha 66f3dc4
Merge branch 'main' into cache-parse-incremental
majocha d32e0fd
there is no source change?
majocha a4443d0
FSharpSources in state, with weakly attached parsed inputs
majocha 92bec18
Merge branch 'main' into cache-parse-incremental
majocha afe51a0
invalidate correctly
majocha d1495c4
Merge branch 'main' into cache-parse-incremental
majocha 93f76d7
some stupid debounce
majocha 547768c
fix test
majocha 6249d61
Merge branch 'cache-parse-incremental' of https://github.com/majocha/…
majocha aac93c5
fix wip
majocha 057834d
fixit
majocha 64315bb
revert to notifiedstamps, explicit invalidation
majocha f923d6d
some cleanup
majocha 48fff10
Merge branch 'main' into cache-parse-incremental
majocha 05e40cb
reduce diff a bit
majocha 771d996
Merge branch 'cache-parse-incremental' of https://github.com/majocha/…
majocha efb258d
forgot that one
majocha f9bbe65
Merge branch 'main' into cache-parse-incremental
majocha 02f51e6
add option
majocha 2bd08a2
editor option
majocha 48048cb
oops
majocha 10c0a16
format
majocha 2e7cbf5
update surface area
majocha a9ec7a8
Merge branch 'main' into cache-parse-incremental
majocha 1f50158
add some tests and diagnostics
majocha eabdaf4
Merge branch 'cache-parse-incremental' of https://github.com/majocha/…
majocha f05e0e2
telemetry based tests
majocha ff204d4
add docs
majocha d0776dd
Merge branch 'main' into cache-parse-incremental
majocha 8487db2
feedback, naming
majocha 4c440d1
Merge branch 'main' into cache-parse-incremental
majocha 8603a61
Merge branch 'cache-parse-incremental' of https://github.com/majocha/…
majocha 4deea21
naming
majocha 1ea1090
oops
majocha 60e0dcf
feedback
majocha 7da24c5
Merge branch 'main' into cache-parse-incremental
majocha 47e748c
Merge branch 'main' into cache-parse-incremental
majocha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| title: IncrementalBuilder caches | ||
| category: Language Service Internals | ||
| categoryindex: 300 | ||
| index: 1300 | ||
| --- | ||
| # IncrementalBuilder SyntaxTree cache | ||
|
|
||
| Incremental builder keeps in a cache at most one `ParsedInput` for each file it parses. | ||
| This behavior can be toggled with `useSyntaxTreeCache` parameter. | ||
|
|
||
| Memory impact of this feature can be in range of tens of MB for larger solutions. This can be inspected in memory profilng tools by searching for `ParsedInput` instances. | ||
| When partial checking is enabled, implementation files backed by signature will not be parsed or cached, as expected. |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.