2 ms·
>Let's play devil's advocate: how do you decide the cutoff on function size for inlining AOT compiler writers have been tuning inline heuristics for more than
by gpderetta 10y ago
>Let's play devil's advocate: how do you decide the cutoff on function size for inlining
AOT compiler writers have been tuning inline heuristics for more than 40 years. Sure sometimes you have to help the compiler with annotations or PGO, but in the large majority of cases things just work.
In fact AOT can deal much better with the massive code explosion due to aggressive inlining than JIT compilers which have a very tight time budget for optimisations.