AOT vs JIT Compilation
The cluster centers on debates comparing Ahead-of-Time (AOT) and Just-In-Time (JIT) compilation techniques, particularly their performance, optimizations, and implementations in Java, GraalVM, JVMs, and other platforms like Android ART.
Activity Over Time
Top Contributors
Keywords
Sample Comments
AOT in many instances is less performant than JIT compilation...
AOT compilers for Java do exist and are quite fast.
There are certified JVMs with AOT compilers available.
Native AOT compiled code is not necessarily faster than JIT compiled code. The Java JIT engine can do a lot of optimisations that would not be possible with AOT compilation. In the end it's compiled down to machine code anyway.
Java also does optimizations at AOT, it is all a matter which toolchain one uses, plenty of choice since 2000.
What about AOT compilation? How does that compare?
Depends on if the Java code is ahead of time compiled or not. The AOT compiler is included in the latest JDKs.
Technically it's JITted not AOT compiled.
What about GraalVM, which sports native AOT compilation?
They aren't JIT. They're doing AoT AFAICT.