Skip to content

Commit

Permalink
final version for abeobk (#654)
Browse files Browse the repository at this point in the history
* final version

* Correct stupid mistake

* min/max trick does not help that much, setting initial value does.

* cut the tail
  • Loading branch information
abeobk authored Jan 31, 2024
1 parent f0f6570 commit 3c454d0
Show file tree
Hide file tree
Showing 2 changed files with 248 additions and 210 deletions.
2 changes: 1 addition & 1 deletion prepare_abeobk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ 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_abeobk_image ]; then
NATIVE_IMAGE_OPTS="--gc=epsilon -O3 -dsa -march=native -H:InlineAllBonus=10 -H:-GenLoopSafepoints -H:-ParseRuntimeOptions --enable-preview --initialize-at-build-time=dev.morling.onebrc.CalculateAverage_abeobk"
NATIVE_IMAGE_OPTS="--gc=epsilon -O3 -march=native -H:InlineAllBonus=10 -H:-GenLoopSafepoints --enable-preview --initialize-at-build-time=dev.morling.onebrc.CalculateAverage_abeobk"
native-image $NATIVE_IMAGE_OPTS -cp target/average-1.0.0-SNAPSHOT.jar -o target/CalculateAverage_abeobk_image dev.morling.onebrc.CalculateAverage_abeobk
fi
Loading

0 comments on commit 3c454d0

Please sign in to comment.