Skip to content

Add support for caching generated SourceTexts#16502

Merged
captainsafia merged 5 commits into
mainfrom
safia/st-cache
Mar 30, 2021
Merged

Add support for caching generated SourceTexts#16502
captainsafia merged 5 commits into
mainfrom
safia/st-cache

Conversation

@captainsafia

@captainsafia captainsafia commented Mar 24, 2021

Copy link
Copy Markdown
Contributor

Add some logic to cache generated source texts to resolve dotnet/aspnetcore#30709.

I used the code in the CachingSourceGenerator as a blueprint.

This code will likely be replaced once we consume the incremental source generator.

@ghost

ghost commented Mar 24, 2021

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@captainsafia captainsafia added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK label Mar 24, 2021
Comment thread src/RazorSdk/SourceGenerators/RazorSourceGenerator.cs Outdated
Comment thread src/RazorSdk/SourceGenerators/RazorSourceGenerator.cs Outdated

@pranavkm pranavkm left a comment

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.

Looks great

Comment thread src/RazorSdk/SourceGenerators/RazorSourceGenerator.cs Outdated
Comment thread src/RazorSdk/SourceGenerators/RazorSourceGenerationContext.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, StaticWebAssetsSDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attempt to cache SourceText in RazorSourceGenerator

2 participants