Skip to main content

What is Tiered Compilation in .NET and why is it important?

Expert .NET Core
Quick Answer Tiered compilation runs code at Tier 0 (minimal optimization, fast startup) first. After a method is called N times (hot path), it's recompiled at Tier 1 with full JIT optimizations. With PGO (Profile-Guided Optimization) in .NET 6+, Tier 1 uses actual runtime profile data to make even better optimization decisions.

Answer

Tier 0 generates fast unoptimized code for quick startup; Tier 1 recompiles hot paths with optimizations. Tiered PGO enhances long-running performance. Together they balance startup speed and runtime throughput.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice