9 ms·
You can build GraalVM native images from modularized code, but you can also build them from non-modularized code.
by gergo_barany 2y ago
You can build GraalVM native images from modularized code, but you can also build them from non-modularized code.
- kernal 2y agoWouldn't the native executable be smaller using modularized code?
- gergo_barany 2y agoI don't see why it would be. The native image static analysis decides on the level of individual classes, methods, and even class fields what to include in the image and what not. It doesn't compile entire packages or modules into the image, only parts it considers reachable. And the module system shouldn't influence this reachability analysis I think.