ddimtirov - switched to the foreign memory access preview API for another 10% speedup

This commit is contained in:
Dimitar Dimitrov
2024-01-04 04:22:39 +09:00
committed by Gunnar Morling
parent 1923fc65a8
commit d73457872f
2 changed files with 69 additions and 60 deletions

View File

@@ -15,6 +15,7 @@
# limitations under the License.
#
JAVA_OPTS="-XX:+UseParallelGC"
# --enable-preview to use the new memory mapped segments
# We don't allocate much, so just give it 1G heap and turn off GC; the AlwaysPreTouch was suggested by the ergonomics
JAVA_OPTS="--enable-preview -Xms1g -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+AlwaysPreTouch"
time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_ddimtirov