Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. …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…
  2. ▲ 4
    Show HN: hist: An overengineered solution to `sort|uniq -c` with 25x throughput
    story by noamteyssier · 2025-10-23 · 3 comments
  3. ▲ 118
    An overengineered solution to `sort | uniq -c` with 25x throughput (hist)
    story by noamteyssier · 2025-10-22 · 109 comments