From 7be075ebfc4d3ab5b8edf0ece61bb9d6a8b7ec82 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Mon, 25 Aug 2025 09:03:43 +0200 Subject: [PATCH 1/2] AoT builds: use the G1 garbage collector Issue: #195 --- build.sbt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.sbt b/build.sbt index 16945c4..0d92437 100644 --- a/build.sbt +++ b/build.sbt @@ -26,6 +26,7 @@ lazy val graalOptions = Seq( // For the release build, optimize for speed and make a build report if (isDevBuild) Seq("-Ob") else Seq("-O3", "--emit build-report"), ).flatten ++ Seq( + "--gc=G1", // Use the faster, parallel G1 garbage collector "--features=eu.neverblink.jelly.cli.graal.ProtobufFeature", "-H:ReflectionConfigurationFiles=" + file("graal.json").getAbsolutePath, // Needed to skip initializing all charsets. @@ -84,4 +85,5 @@ lazy val root = (project in file(".")) // Do a fast build if it's a dev build // For the release build, optimize for speed and make a build report graalVMNativeImageOptions := graalOptions, + graalVMNativeImageCommand := "/opt/graalvm_2025_03/bin/native-image", ) From 23f84e5424cbe5480a4c05be3b1152c187e34be9 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Mon, 25 Aug 2025 09:13:35 +0200 Subject: [PATCH 2/2] oops, committed local config... --- build.sbt | 1 - 1 file changed, 1 deletion(-) diff --git a/build.sbt b/build.sbt index 0d92437..57c5415 100644 --- a/build.sbt +++ b/build.sbt @@ -85,5 +85,4 @@ lazy val root = (project in file(".")) // Do a fast build if it's a dev build // For the release build, optimize for speed and make a build report graalVMNativeImageOptions := graalOptions, - graalVMNativeImageCommand := "/opt/graalvm_2025_03/bin/native-image", )