Re:Ask HN: Why is Android moving to AOT Java compilation?
by rockdoe on Friday July 04, 2014 @10:46AM
(#7988925)
What is the difference between AOT and sufficiently aggressive JIT caching?
AoT doesn't adapt to changing program profiles.
Re:Ask HN: Why is Android moving to AOT Java compilation?
by deong on Friday July 04, 2014 @11:00AM
(#7988992)
But it also doesn't spend any CPU time, memory pressure, cache lines, etc., on trying to adapt to changing profiles.
What is the difference between AOT and sufficiently aggressive JIT caching?
> Caching first-run still gives you the ability to do more/new profiled-based optimization later.
Well you could have your runtime running with the overhead of an interpreter, a profiler, and an optimizer, and hope all will turn out well. Or you could just run the machine code without these complexities and know that it is probably close to optimal anyway.