gperf

Generates perfect hash functions for fast keyword lookup

brewmacoslinux
Try with needOr install directly
Source

About

Perfect hash function generator

Commands

gperf

Examples

Generate a perfect hash function from a keyword list file$ gperf keywords.txt > hash.h
Generate hash function with C++ output and case-insensitive matching$ gperf -l -C -L C++ keywords.txt > hash.cpp
Display help and available options$ gperf --help