If application startup time & latency is an issue, consider the new ReadyToRun format for your application. ReadyToRun is an Ahead-of-Time (AOT) compilation. Due to the fact that R2R assemblies wonβt require JIT work when assembly is loaded. ReadyToRun application contain both Native and Managed code as the last one can be used for certain scenarios
To produce ReadyToRun code we need to pass an extra parameter when publishing platform-specific application version. See attached example π
Docs π: https://learn.microsoft.com/en-us/dotnet/core/deploying/ready-to-run
// β
add PublishReadyToRun=true to indicate AOT ReadyToRun mode
dotnet publish -c Release -r win-x64 -p:PublishReadyToRun=true