ddimtirov - switched to the foreign memory access preview API for another 10% speedup
This commit is contained in:
committed by
Gunnar Morling
parent
1923fc65a8
commit
d73457872f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user