Use System.Runtime.ProfileOptimization for faster startup
Open
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
Assessment
This issue has not been assessed yet.