aboutsummaryrefslogtreecommitdiff
path: root/prepare_royvanrijn.sh
diff options
context:
space:
mode:
authorRoy van Rijn <roy.van.rijn@gmail.com>2024-01-27 06:24:06 -0800
committerGitHub <noreply@github.com>2024-01-27 15:24:06 +0100
commit489ec9e3b1bc0e26bbbef7135d40ccfb1ce05f02 (patch)
tree5f63ed5933c97400b7a40eac2d3cf585276b7795 /prepare_royvanrijn.sh
parent84f6331b835dd2f1c74c49ca9a01c63e87779fda (diff)
Larger heap, small tweaks (#593)
More small tweaks, perf from 775~ to 738~
Diffstat (limited to 'prepare_royvanrijn.sh')
-rwxr-xr-xprepare_royvanrijn.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/prepare_royvanrijn.sh b/prepare_royvanrijn.sh
index a9789d6..81672e8 100755
--- a/prepare_royvanrijn.sh
+++ b/prepare_royvanrijn.sh
@@ -21,8 +21,8 @@ sdk use java 21.0.2-graal 1>&2
# ./mvnw clean verify removes target/ and will re-trigger native image creation.
if [ ! -f target/CalculateAverage_royvanrijn_image ]; then
- JAVA_OPTS="--enable-preview -dsa"
- NATIVE_IMAGE_OPTS="--initialize-at-build-time=dev.morling.onebrc.CalculateAverage_royvanrijn --gc=epsilon -Ob -O3 -march=native --strict-image-heap $JAVA_OPTS"
+ JAVA_OPTS="--enable-preview"
+ NATIVE_IMAGE_OPTS="-H:+UnlockExperimentalVMOptions --initialize-at-build-time=dev.morling.onebrc.CalculateAverage_royvanrijn --gc=epsilon -O3 -march=native -R:MaxHeapSize=515m -H:-GenLoopSafepoints -H:InlineAllBonus=10 -H:-ParseRuntimeOptions $JAVA_OPTS"
native-image $NATIVE_IMAGE_OPTS -cp target/average-1.0.0-SNAPSHOT.jar -o target/CalculateAverage_royvanrijn_image dev.morling.onebrc.CalculateAverage_royvanrijn
fi