gunnarmorling / 1brc

1️⃣🐝🏎️ The One Billion Row Challenge -- A fun exploration of how quickly 1B rows from a text file can be aggregated with Java
https://www.morling.dev/blog/one-billion-row-challenge/
Apache License 2.0
6k stars 1.8k forks source link

anestoruk second attempt #625

Closed anestoruk closed 7 months ago

anestoruk commented 7 months ago

Check List:

I made a small improvement by replacing the use of hashmap with array to collect the partial results. Hash collisions are resolved by incrementing array's position until "free" slot is found (lines 126-132).

This saves about 2-3 seconds on my machine, but I'm not sure if this will be sufficient to drop below 10s execution time on evaluation machine ( :crossed_fingers: ).

gunnarmorling commented 7 months ago

00:12.736 now.