News for hackers. Stuff that matters.
Re:Compiling Java into Native Binaries with Graal and Mill by sgammon on Tuesday February 04, 2025 @06:12AM (#42930935)
Builds have been slow for a long time via Native Image, but make sure you upgrade to the latest because it has gotten much faster lately. They've also worked hard on binary size.

A pure Java hello world now compiles in a few seconds on a commodity machine and weighs in at about 9mb.

Also, make sure you enable `-Ob` on newer versions of GraalVM, which significantly speeds up build times.

Re:Compiling Java into Native Binaries with Graal and Mill by gf000 on Wednesday February 05, 2025 @10:46AM (#42950164)
I would only use -Ob for development, it's not for production builds.