diff options
author | Van Phu DO <abeobk@gmail.com> | 2024-01-26 06:57:04 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 22:57:04 +0100 |
commit | 271bdfb0329df636988455e450bb48a45f5b917f (patch) | |
tree | bbf9d06fdafa53421ba64008fcf69acb0256dbd0 /prepare_abeobk.sh | |
parent | ce9455a584413b575a2eb23633eb92bb415a0618 (diff) |
Simplify Node class with less field, improve hash mix speed (#584)
* Simplify Node class with less field, improve hash mix speed
* remove some ops, a bit faster
* more inline, little bit faster but not sure
Diffstat (limited to 'prepare_abeobk.sh')
-rwxr-xr-x | prepare_abeobk.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prepare_abeobk.sh b/prepare_abeobk.sh index d8ed86a..1b73743 100755 --- a/prepare_abeobk.sh +++ b/prepare_abeobk.sh @@ -20,6 +20,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_abeobk_image ]; then - NATIVE_IMAGE_OPTS="--gc=epsilon -O3 -march=native -R:MaxHeapSize=128m -H:InlineAllBonus=10 -H:-ParseRuntimeOptions --enable-preview --initialize-at-build-time=dev.morling.onebrc.CalculateAverage_abeobk" + NATIVE_IMAGE_OPTS="--gc=epsilon -O3 -dsa -march=native -R:MaxHeapSize=128m -H:-GenLoopSafepoints -H:-ParseRuntimeOptions --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 + + |