diff options
| author | adri <adria.cabezasantanna@datadoghq.com> | 2024-01-20 21:27:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-20 21:27:34 +0100 |
| commit | 0a7726cc643dc4068884af37a1280b5094454e25 (patch) | |
| tree | e63a83262922f097f7e0c60b0b4256ca056580f8 /calculate_average_adriacabeza.sh | |
| parent | 36ffed1315192130478b9291fe1dead03f5c0c58 (diff) | |
Improving first iteration by avoiding string creation as much as possible (#516)
- It avoids creating unnecessary Strings objects and handles with the station names with its djb2 hashes instead
- Initializes hashmaps with capacity and load factor
- Adds -XX:+AlwaysPreTouch
Diffstat (limited to 'calculate_average_adriacabeza.sh')
| -rwxr-xr-x | calculate_average_adriacabeza.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calculate_average_adriacabeza.sh b/calculate_average_adriacabeza.sh index e2c6557..7d4be43 100755 --- a/calculate_average_adriacabeza.sh +++ b/calculate_average_adriacabeza.sh @@ -16,6 +16,6 @@ # -JAVA_OPTS="-XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC" +JAVA_OPTS="-XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -XX:+AlwaysPreTouch" java --enable-preview -classpath target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_adriacabeza |
