Re:How to Compile Java into Native Binaries with Mill and Graal
by roncesvalles on Tuesday February 04, 2025 @03:11AM
(#42929550)
There are instances where JVM's dynamically optimized code runs faster than equivalent C code compiled to a native binary. The Hotspot JVM is no joke.
[ Parent
| on HN ]
Re:How to Compile Java into Native Binaries with Mill and Graal
by sgammon on Tuesday February 04, 2025 @06:35AM
(#42931080)
It's not either/or. Compiling a Native Image binary gives you the JIT power of the JVM, but with faster warmup time.
Peak-peak performance is not as good as JVM in many cases, but how long does your process actually spend within that space? Native Image can be optimal for many cases