diff options
| author | Roman Musin <995612+roman-r-m@users.noreply.github.com> | 2024-01-27 14:17:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-27 15:17:55 +0100 |
| commit | f9c58414da2c647e6d7df5cf49aa21cd30684f38 (patch) | |
| tree | 8e6ccdf57fb2fe861f238b860aff39c0a76e0c4d /prepare_roman-r-m.sh | |
| parent | c228633b5753e2565e93833cf0ef8af23c66ac77 (diff) | |
Next version (#596)
* cleanup prepare script
* native image options
* fix quardaric probing (no change to perf)
* mask to get the last chunk of the name
* extract hash functions
* tweak the probing loop (-100ms)
* fiddle with native image options
* Reorder conditions in hope it makes branch predictor happier
* extracted constant
Diffstat (limited to 'prepare_roman-r-m.sh')
| -rwxr-xr-x | prepare_roman-r-m.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prepare_roman-r-m.sh b/prepare_roman-r-m.sh index a0593b2..dcd5500 100755 --- a/prepare_roman-r-m.sh +++ b/prepare_roman-r-m.sh @@ -23,6 +23,8 @@ if [ ! -f target/CalculateAverage_roman_r_m_image ]; then JAVA_OPTS="--enable-preview -dsa" NATIVE_IMAGE_OPTS="--initialize-at-build-time=dev.morling.onebrc.CalculateAverage_roman_r_m --gc=epsilon -Ob -O3 -march=native --strict-image-heap $JAVA_OPTS" + NATIVE_IMAGE_OPTS="$NATIVE_IMAGE_OPTS -R:MaxHeapSize=128m" + NATIVE_IMAGE_OPTS="$NATIVE_IMAGE_OPTS -H:+UnlockExperimentalVMOptions -H:-GenLoopSafepoints -H:InlineAllBonus=10 -H:-ParseRuntimeOptions" native-image $NATIVE_IMAGE_OPTS -cp target/average-1.0.0-SNAPSHOT.jar -o target/CalculateAverage_roman_r_m_image dev.morling.onebrc.CalculateAverage_roman_r_m fi
\ No newline at end of file |
