Re:RedHat Mandrel Makes Java Native
by kimi on Thursday July 02, 2020 @04:47AM
(#23711243)
What often is not clear is that GrralVM in "native" mode is NOT faster than JVM mode, because the JVM has a number of tricks up its sleeve for dynamic optimization based on actual usage patterns. It definitely has faster startup times, but for a web client/server application this is not so significant.
[ Parent
| on HN ]
Re:RedHat Mandrel Makes Java Native
by imtringued on Thursday July 02, 2020 @05:55AM
(#23711602)
I personally am more interested in the lower memory usage.
Memory usage is smaller mostly for small apps. Larger apps will see larger memory usage because the GC and heap layout is a lot weaker.
SVM/native-image has its place, but currently it's optimised for things like command line apps or servers that people constantly shut down and start up to try and save on huge AWS costs. Actual runtime throughput and latency will be far better on regular OpenJDKs, especially the latest ones with much better garbage collectors.