Skip to content

Commit

Permalink
Added dedicated reader (#493)
Browse files Browse the repository at this point in the history
Started running perf, perhaps this helps. No idea how to use it yet
  • Loading branch information
royvanrijn authored Jan 19, 2024
1 parent f409fe0 commit 7c983f3
Show file tree
Hide file tree
Showing 2 changed files with 458 additions and 212 deletions.
2 changes: 1 addition & 1 deletion prepare_royvanrijn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sdk use java 21.0.1-graal 1>&2
if [ ! -f target/CalculateAverage_royvanrijn_image ]; then

JAVA_OPTS="--enable-preview -dsa"
NATIVE_IMAGE_OPTS="--gc=epsilon -Ob -O3 -march=native --strict-image-heap $JAVA_OPTS"
NATIVE_IMAGE_OPTS="--initialize-at-build-time=dev.morling.onebrc.CalculateAverage_royvanrijn --gc=epsilon -Ob -O3 -march=native --strict-image-heap $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
Loading

0 comments on commit 7c983f3

Please sign in to comment.