noamteyssier/hist-rs
View on GitHub ↗ ★ 120 Rust
An efficient unique-line counter (25x over `sort | uniq -c`)
3 mentions on Hacker News by 2 people: 2 stories, 1 comment · first 2025-10-22 · latest 2025-10-27
20082026
-
…every *nix system. awk '{ x[$0]++ } END { for(y in x) { print y, x[y] }}' <file> | sort -k2,2nr [0] https://github.com/noamteyssier/hist-rs/blob/main/justfile [*] Birthday problem math says about 250, for 50M strings sampled from a pool of…
comment by MontyCarloHall · 2025-10-27 · in An overengineered solution to `sort | uniq -c` with 25x throughput (hist)