Runtime: Enable tiered compilation by default

Created on 18 Jul 2018  路  8Comments  路  Source: dotnet/runtime

Enable tiered compilation by default

Tiered compilation was added as an optional feature in .NET Core 2.1. It has been demonstrated that the feature has a lot of value. We have done additional test runs that show similar gains.

There have been some reports of degradation due to tiered compilation. We believe that these cases are in the narrow minority.

We would like to do the following:

  • Enable tiered compilation by default in the first .NET Core 2.2 preview.
  • Enable an opt-out of the feature. It is opt-in right now.
  • Collect user feedback on the feature to make a decision if the feature works well enough to ship in 2.2 enabled.

We would make the same changes in master (AKA .NET Core 3.0) at the same time.

If that doesn't work out, we could keep the feature as opt-in and enable it in some set of templates. This option isn't a proposal and would be dissapointing

Relevant links:

area-TieredCompilation-coreclr enhancement

All 8 comments

There have been some reports of degradation due to tiered compilation. We believe that these cases are in the vast majority.

I think you said the opposite of what you meant?

Fixed. Thanks!

Will this use the cross-gen'd code when available; falling back to tier 1 jit when not; then moving to tier 2 in hot paths?

i.e. use crossgen'd in preference to tier 1 jit; but still always getting benefit of tier 2 for hot paths

Yes. Both prejitted and tier0 code get rejitted.

Just a minor thing, but the markdown around {feature has a lot of value] is borked and not rendering correctly

Fixed. Thanks.

We're planning a small number of runtime features for 2.2. Here's how you can track them: https://github.com/dotnet/coreclr/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3Aenhancement+milestone%3A2.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EgorBo picture EgorBo  路  3Comments

matty-hall picture matty-hall  路  3Comments

aggieben picture aggieben  路  3Comments

bencz picture bencz  路  3Comments

yahorsi picture yahorsi  路  3Comments