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
6.23k stars 1.87k forks source link

Second version by albertoventurini #609

Closed albertoventurini closed 9 months ago

albertoventurini commented 9 months ago

Check List:

This version contains some minor optimisations in the parsing code. Furthermore, I tested my previous version on an 8-core AMD EPYC machine and saw that the solution was performing particularly poorly on that environment (~30 seconds). I resized the byte buffers that each thread uses to read from the RandomAccessFile, and with this change, my solution runs under 10 seconds on the 8-core AMD machine.

gunnarmorling commented 9 months ago

00:22.334 now.