Skip to content

Developer tools · cryptography library

xxhash

Fast, non-cryptographic hash function that people recommend as a faster, higher-quality replacement for CRC32 in hash tables and keys.

Summarized from 10 comments.

Fast, non-cryptographic hash function that people recommend as a faster, higher-quality replacement for CRC32 in hash tables and keys.

recommend
9
criticize
0
months recommended
5 of 13

Why people love it

  • Better than CRC32 for hashing · 4

    xxhash is better than crc32 for hashing keys in a hash table, but both of them are inappropriate for file checksums

    Jan 2026 · comment

    From SMHasher test results quality of xxhash seems higher. It has less bias / higher uniformity that CRC.

    Jan 2026 · comment

    I'm pretty sure xxhash is a straight upgrade compared to CRC32.

    Jan 2026 · comment
  • Much faster than alternatives · 4

    40x faster than the fastest JavaScript version I can find. Drop in replacement.

    Jan 2026 · comment

    I was getting 2x perf when using xxhash3 instead of wyhash

    Feb 2026 · comment

    Why not use a faster hashing algorithm like xxhash?

    Nov 2025 · comment
  • Widely recommended modern hash choice · 2

    xxHash, rapidHash or anything that’s fast will do the job.

    Jul 2026 · comment

    xxhash is the best modern option.

    Sep 2026 · comment

What hackers pick instead

Every quote

The 10 most detailed of 10 comments. Each links to the original.

  1. xxhash is better than crc32 for hashing keys in a hash table, but both of them are inappropriate for file checksums

    Mixed · Jan 2026 · in “Libbbf: Bound Book Format, A high-performance container for comics and manga”

  2. From SMHasher test results quality of xxhash seems higher. It has less bias / higher uniformity that CRC.

    Recommends · Jan 2026 · in “Libbbf: Bound Book Format, A high-performance container for comics and manga”

  3. 40x faster than the fastest JavaScript version I can find. Drop in replacement.

    Recommends · Jan 2026 · in “Increasing the performance of WebAssembly Text Format parser by 350%”

  4. I'm pretty sure xxhash is a straight upgrade compared to CRC32.

    Recommends · Jan 2026 · in “Libbbf: Bound Book Format, A high-performance container for comics and manga”

  5. xxHash, rapidHash or anything that’s fast will do the job.

    Recommends · Jul 2026 · in “DskDitto: Ultra-fast, parallel duplicate-file detector”

  6. I was getting 2x perf when using xxhash3 instead of wyhash

    Recommends · Feb 2026 · in “Two Bits Are Better Than One: making bloom filters 2x more accurate”

  7. Why not use a faster hashing algorithm like xxhash?

    Recommends · Nov 2025 · in “The Challenge of Large File Checksums”

  8. xxhash is definitely an improvement over CRC32.

    Recommends · Jan 2026 · in “Libbbf: Bound Book Format, A high-performance container for comics and manga”

  9. xxh3 is ~1.6x to 1.8x faster than xxh64

    Recommends · Sep 2026 · in “Show HN: Compute polynomials twice as fast”

  10. xxhash is the best modern option.

    Recommends · Sep 2026 · in “GEFS on OpenBSD: A Early Preview”

Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake