3 ms·
AOT can deal with it. In Java 9 or 10, they added an ability to AOT compile modules. You can still do dynamic classloading with the result, and the JVM still wa
by repolfx 8y ago
AOT can deal with it. In Java 9 or 10, they added an ability to AOT compile modules. You can still do dynamic classloading with the result, and the JVM still warms up to higher peak performance than you get with a static AOT compiler alone.
The SubstrateVM flavour can't do dynamic classloading or go as fast as HotSpot, it's strictly less powerful and compatible. However the static points-to analysis it does along with other optimisations mean much smaller binaries and memory footprints. If those matter to you and you can sacrifice classloading, great. If you can't, experiment with HotSpot's AOT support (which also uses Graal under the covers) and you can get faster startup time, but without the memory savings.