diff options
| author | Elliot Barlas <elliotbarlas@gmail.com> | 2024-01-04 12:06:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-04 21:06:19 +0100 |
| commit | a8bd6b58ce10678719aaa633171676503206e18e (patch) | |
| tree | 6985616dd51a0bd20b174eed23c41504fcce8404 /calculate_average_ebarlas.sh | |
| parent | 0c59483985abf0ecc27c6b680033d27b763bd6b3 (diff) | |
Elliot Barlas: Use proper hash key collision detection scheme
* Use open-addressing scheme to deal with hash table collisions. Reduce concurrency from 16 to 8. Use bit mask rather than mod operator to confine hash code to table range.
* Properly handle file partitions that reside entirely within a line.
* Reorder statements in doProcessBuffer.
Diffstat (limited to 'calculate_average_ebarlas.sh')
| -rwxr-xr-x | calculate_average_ebarlas.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calculate_average_ebarlas.sh b/calculate_average_ebarlas.sh index 65cc651..73e286f 100755 --- a/calculate_average_ebarlas.sh +++ b/calculate_average_ebarlas.sh @@ -17,4 +17,4 @@ sdk use java 21.0.1-graalce JAVA_OPTS="" -time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_ebarlas measurements.txt 16 +time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_ebarlas measurements.txt 8 |
