aboutsummaryrefslogtreecommitdiff
path: root/prepare_JamalMulla.sh
diff options
context:
space:
mode:
authorJamal Mulla <jamaldevacc@gmail.com>2024-01-31 21:09:25 +0000
committerGitHub <noreply@github.com>2024-01-31 22:09:25 +0100
commite639e2a045371ab0be51404767a42f22f689cf2c (patch)
tree278ae1e1292f3238838dd0050244d9ad48738605 /prepare_JamalMulla.sh
parentb91c95a498c5959ae391c7ad4fdeb2162e31b73d (diff)
Second attempt with various improvements (#510)
* Initial chunked impl * Bytes instead of chars * Improved number parsing * Custom hashmap * Graal and some tuning * Fix segmenting * Fix casing * Unsafe * Inlining hash calc * Improved loop * Cleanup * Speeding up equals * Simplifying hash * Replace concurrenthashmap with lock * Small changes * Script reorg * Native * Lots of inlining and improvements * Add back length check * Fixes * Small changes --------- Co-authored-by: Jamal Mulla <j.mulla@mwam.com>
Diffstat (limited to 'prepare_JamalMulla.sh')
-rwxr-xr-xprepare_JamalMulla.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/prepare_JamalMulla.sh b/prepare_JamalMulla.sh
index ec0f35f..d950d43 100755
--- a/prepare_JamalMulla.sh
+++ b/prepare_JamalMulla.sh
@@ -16,4 +16,10 @@
#
source "$HOME/.sdkman/bin/sdkman-init.sh"
-sdk use java 21.0.1-graal 1>&2 \ No newline at end of file
+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_JamalMulla_image ]; then
+ NATIVE_IMAGE_OPTS="--gc=epsilon -O3 -march=native --enable-preview --strict-image-heap --link-at-build-time -R:MaxHeapSize=64m -da -dsa --no-fallback --initialize-at-build-time=dev.morling.onebrc.CalculateAverage_JamalMulla"
+ native-image $NATIVE_IMAGE_OPTS -cp target/average-1.0.0-SNAPSHOT.jar -o target/CalculateAverage_JamalMulla_image dev.morling.onebrc.CalculateAverage_JamalMulla
+fi \ No newline at end of file