Skip to content
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

Enable JIT features for C# performance #379

Open
cl0ckt0wer opened this issue Mar 23, 2023 · 2 comments
Open

Enable JIT features for C# performance #379

cl0ckt0wer opened this issue Mar 23, 2023 · 2 comments

Comments

@cl0ckt0wer
Copy link

Two options that can be enabled for long running processes.
https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#jit

Profile Guided Optimizations:
https://devblogs.microsoft.com/dotnet/conversation-about-pgo/

environment variables to set:

DOTNET_TieredPGO = 1
DOTNET_ReadyToRun = 0

note that DOTNET_TieredPGO doesn’t disable use of R2R images, so if you want the entirety of the core libraries also employing dynamic PGO, you’ll also need to set DOTNET_ReadyToRun=0

@cl0ckt0wer cl0ckt0wer changed the title Enable JIT features for performance Enable JIT features for C# performance Mar 23, 2023
@cl0ckt0wer
Copy link
Author

@igouy
Copy link

igouy commented Mar 24, 2023

"it’s now possible to simply put <TieredPGO>true</TieredPGO> into your .csproj, and it’ll have the same effect as if you set DOTNET_TieredPGO=1 prior to every invocation of the app, enabling dynamic PGO (note that it doesn’t disable use of R2R images, so if you want the entirety of the core libraries also employing dynamic PGO, you’ll also need to set DOTNET_ReadyToRun=0)."

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

No branches or pull requests

2 participants