3 ms·
"There is no way to know that at compile time" Profile-guided, whole-program optimization can do that for whatever execution patterns the developer feeds them.
by nickpsecurity 8y ago
"There is no way to know that at compile time"
Profile-guided, whole-program optimization can do that for whatever execution patterns the developer feeds them. It will be faster than the JIT's because it has more time to analyze and optimize. The JIT will be better on the exceptional cases the AOT compiler didn't optimize for. In many apps, I'd much rather have the AOT approach than the JIT approach. Heck, some routines in fast path might even get superoptimized if developer wants. :)