.NET Core incorporates a new JIT compiler technology called tiered compilation, which is also known as adaptive optimization that can significantly improve performance. Tiered compilation is an opt-in setting.
Tiered compilation introduces two stages in JIT compilation.
You can opt into tiered compilation in the following ways.
To use tiered compilation in all projects that use the .NET Core 2.1 SDK, set the following environment variable:
To use a tiered compilation on a per-project basis, add the
<PropertyGroup> <!-- other property definitions --> <TieredCompilation>true</TieredCompilation> </PropertyGroup>