Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 4, 2025

Backport of #80845 to release/dev18.0

/cc @jasonmalinowski

Customer Impact

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

We're seeing a performnace issue in Razor projects in cohosting
scenarios. The first run of the Razor generator is relatively slow,
and so ideally we wouldn't have that happen more than once. However,
since multiple features might request compilations for a Razor project
during startup in parallel, it's possible that all of those parallel
invocations might initialize the generator multiple times if they
happen to be different Solution instances. This change tries to ensure
that when we're creating a GeneratorDriver for a project when we don't
already have one, we'll do that computation just once, and try to share
that across the forks. This ensures we do the expensive initialization
only once.
@github-actions github-actions bot requested a review from a team as a code owner November 4, 2025 04:09
@jasonmalinowski jasonmalinowski deleted the backport/pr-80845-to-release/dev18.0 branch November 4, 2025 17:42
@jasonmalinowski
Copy link
Member

I backported to the wrong branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants