Disable tiered compilation in the compiler#80154
Merged
Merged
Conversation
VS performance data indicated that tiered compilation was negatively impacting compiler throughput. Using the [replay tool](https://github.com/dotnet/roslyn/tree/main/src/Tools/Replay) I measured the impact of R2R, Tier and Tier PGO on a number of scenarios and got the following data: | Scenario | R2R | Tier | Tier PGO | Total Compilations | Iterations | Avg Time | | ---------- | --- | ---- | -------- | ------------------ | ---------- | -------- | | complog | Off | Off | Off | 11 | 5 | 0:04 | | complog | Off | On | On | 11 | 5 | 0:03 | | CSharp.Semantics | Off | Off | Off | 94 | 5 | 0:05 | | CSharp.Semantics | Off | On | On | 94 | 5 | 0:08 | | CSharp.Semantics | On | Off | Off | 94 | 5 | 0:05 | | CSharp.Semantics | On | On | On | 94 | 5 | 0:09 | | Compilers.slnf | Off | Off | Off | 510 | 3 | 1:02 | | Compilers.slnf | Off | On | On | 510 | 3 | 1:28 | | Compilers.slnf | On | Off | Off | 510 | 3 | 0:56 | | Compilers.slnf | On | On | Off | 510 | 3 | 1:08 | | Compilers.slnf | On | On | On | 510 | 3 | 1:30 | | Roslyn.sln | Off | Off | Off | 1461 | 3 | 1:02 | | Roslyn.sln | Off | On | Off | 1461 | 3 | 1:30 | | Roslyn.sln | On | Off | Off | 1461 | 3 | 0:58 | | Roslyn.sln | On | On | On | 1461 | 3 | 1:28 | | Roslyn.sln | On | On | Off | 1461 | 3 | 1:11 | This strongly indicates that tiering is having a negative impact on compiler throughput. For now we're going to disable it and measure the impact in the VS perf labs. Note: Used the `%DOTNET_TieredCompilation%` and `%DOTNET_TieredPGO%` to control `Tier` and `TierPGO` respectively
JoeRobich
approved these changes
Sep 5, 2025
AlekseyTs
approved these changes
Sep 5, 2025
RikkiGibson
approved these changes
Sep 5, 2025
RikkiGibson
left a comment
Member
There was a problem hiding this comment.
mainly want @akhera99 to have heads up about this since we want to keep an eye on any changes that might occur in the resulting insertion.
jjonescz
added a commit
that referenced
this pull request
Feb 14, 2026
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.
VS performance data indicated that tiered compilation was negatively impacting compiler throughput. Using the
replay tool I measured the impact of R2R, Tier and Tier PGO on a number of scenarios and got the following data:
This strongly indicates that tiering is having a negative impact on compiler throughput. For now we're going to disable it and measure the impact in the VS perf labs.
Note:
Used the
%DOTNET_TieredCompilation%and%DOTNET_TieredPGO%to controlTierandTierPGOrespectively