SkillAgentSearch skills...

FastCHD

A morden implement of CHD/SHD algorithm.

Install / Use

/learn @PeterRK/FastCHD
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Skew Hash and Displace

Algorithm Discription

This algorithm introduces an improvement on CHD, using skew hash as first level hash function to make elenments in head buckets more than those in tail buckets。

Because it's more resonable to use skew hash instead of uniform hash in first level hashing, SHD can achieve higher density than CHD with almost the same performance.

Building dictionary with one billion data costs a dozen of seconds, a little faster than fastCHD (can be found in chd branch).

It can provide sub-billion level QPS on single machine, just like fastCHD (can be found in chd branch).

Key Features

  • extreme low space overhead (3.9 bits per item)
  • amazing read performance
  • fast build with extreme low false failure rate
  • no online writing
  • work on CPU support little-endian unaligned memory access (X86,ARM,RISC-V...)

Other Solutions


【Chinese】 【English】

Related Skills

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated26d ago
Forks3

Languages

C++

Security Score

95/100

Audited on Mar 10, 2026

No findings