Update ngen priorities for Razor assemblies#12252
Merged
davidwengier merged 1 commit intodotnet:mainfrom Sep 23, 2025
Merged
Conversation
davidwengier
approved these changes
Sep 23, 2025
Member
|
@tydunkel do you want this in preview 2? |
Contributor
Author
|
If possible, yes. I can drive an insertion if needed |
Member
|
/backport to release/dev18.0 |
Contributor
|
Started backporting to release/dev18.0: https://github.com/dotnet/razor/actions/runs/17956306754 |
2 tasks
davidwengier
added a commit
that referenced
this pull request
Sep 23, 2025
Backport of #12252 to release/dev18.0 /cc @davidwengier @tydunkel ## 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.]
Member
|
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/673090 is the insertion containing this change for preview 2 |
This was referenced Oct 15, 2025
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of the changes
VS 2026 is focused on improving startup time. To do this, we are changing ngen priorities so only assemblies with large JIT time during startup are priority 2.
This change updates the priorities of Microsoft.CodeAnlysis.Razor.Complier.dll and Microsoft.VisualStudio.LanguageServices.Razor.dll to be priority 2 since they were not a part of the startup trace of VS 2026.