Roy van Rijn: memory mapped files, branchless parsing, bitwiddle magic
Added SWAR (SIMD Within A Register) code to increase bytebuffer processing/throughput Delaying the creation of the String by comparing hash, segmenting like spullara, improved EOL finding Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
This commit is contained in:
@@ -16,5 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
JAVA_OPTS=""
|
||||
# Added for fun, doesn't seem to be making a difference...
|
||||
if [ -f "target/calculate_average_royvanrijn.jsa" ]; then
|
||||
JAVA_OPTS="-XX:SharedArchiveFile=target/calculate_average_royvanrijn.jsa -Xshare:on"
|
||||
else
|
||||
# First run, create the archive:
|
||||
JAVA_OPTS="-XX:ArchiveClassesAtExit=target/calculate_average_royvanrijn.jsa"
|
||||
fi
|
||||
time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_royvanrijn
|
||||
|
||||
Reference in New Issue
Block a user