p The .Fl m argument instructs .Nm to write the resulting key mapping to .Ar map-file . Each line gives the result of the hash function for the corresponding input key.
p The parameter .Ar utilisation determines the space efficiency.
p Supported arguments for .Fl a : l -tag -width "chm" t Sy chm This results in an order preserving minimal perfect hash function. The .Ar utilisation must be at least 2, the default. The number of iterations needed grows if the utilisation is very near to 2. t Sy chm3 Similar to .Ar chm . The resulting hash function needs three instead of two table lookups when compared to .Ar chm . The .Ar utilisation must be at least 1.24, the default. This makes the output for .Ar chm3 noticeably smaller than the output for .Ar chm . t Sy bpz This results in a non-order preserving minimal perfect hash function. Output size is approximately 2.79 bit per key for the default value of .Ar utilisation , 1.24. This is also the smallest supported value. .El
p Supported arguments for .Fl h : l -tag -width "mi_vector_hash" t Sy mi_vector_hash Platform-independent version of Jenkins parallel hash. See .Xr mi_vector_hash 3 . .El
p The number of iterations can be limited with .Fl i . .Nm outputs a function matching .Ft uint32_t .Fn hash "const void * restrict" "size_t" to stdout. The function expects the key length as second argument, for strings not including the terminating NUL. It is the responsibility of the caller to pass in only valid keys or compare the resulting index to the key. The function name can be changed using .Fl n Ar name . If the .Fl s flag is specified, it will be static.
p After each failing iteration, a dot is written to stderr.
p .Nm checks for duplicate keys on the first iteration that passed basic hash distribution tests. In that case, an error message is printed and the program terminates.
p If the .Fl p flag is specified, the hash function is seeded in a stable way. This may take longer than the normal random seed, but ensures that the output is the same for repeated invocations as long as the input is constant. .Sh EXIT STATUS .Ex -std .Sh SEE ALSO .Xr mi_vector_hash 3 .Sh AUTHORS .An J\(:org Sonnenberger