#719·1brc

Cliff Click solution seems to be not handling collisions properly

Author: tivrfoaCreated Feb 8, 2024Updated Feb 8, 2024

Hi @cliffclick

It seems your code relies that uhash is unique, but here is an example of collision:

  • Khān
  • Shām

https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_cliffclick.java#L278

I discovered this because I ran your code, and the output is different for the create_measurements3.sh