dotnet / dotnet/aspnetcore

Use System.Runtime.ProfileOptimization for faster startup

Open
#18,605 10 comments 2 reactions 0 assignees View on GitHub
affected-few area-hosting area-networking enhancement Perf severity-nice-to-have
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

Default host should use ProfileOptimization ([docs](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.profileoptimization?view=netcore-3.1)) for faster startup on after first run.

e.g. it should run something like as follows as early as possible during startup:
```csharp
ProfileOptimization.SetProfileRoot( );
ProfileOptimization.StartProfile("startup.pgo");
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.