.NET: AOT in 2022
summary
Explains practical AOT with crossgen2 and the ReadyToRun format, including single-file vs composite mode tradeoffs, cross-compilation support, and toolchain (dotnet publish, EventPipe profiler, ReadyToRun inspection tools). Reports measured wins: ~300 ms on a small app, ~20–30% faster startup on developer machines, but larger artifacts (+~200 MB) and no win or regressions on some CI Macs and Linux. Cites bugs, instruction-set mismatches, trimming/reflection pain, and fragile tooling as key risks.
AI-written summary · about
