template<int MaxKeyLen = std::numeric_limits<std::uint16_t>::max()>
struct utils::bimap_detail::FNV1aHasher< MaxKeyLen >
collects methods for computing a key's length and 32-bit FNV-1a hash.
- Template Parameters
-
| MaxKeyLen | the max number of characters in key (excluding '\0'). By default, it's the largest value HashRsltPack::keylen holds. A smaller value can be specified as an optimization. |
- Note
- This hash function prioritizes convenience. We may want to evaluate whether alternatives (e.g. fxhash) are faster or have fewer collisions with our typical keys.