[ANN] First release of hachis

It is my pleasure to announce the first release of hachis, a library that offers hash sets and hash maps.

These data structures handle collisions via linear probing, a technique that relies on linear searches within an array. All of the data is stored within one large array (for hash sets) or two large arrays (for hash maps). As a result, these data structures offer good locality.

Some benchmarks suggest that hachis can consistently outperform the standard library’s hash maps (Hashtbl).

To install the library, type opam update && opam install hachis.

For more details, see the documentation.

20 Likes

The code is here for those who are
curious to see how the sausage is done :slight_smile:

2 Likes

Those sausages are highly preprocessed!

Yes, I have grown fond of cppo, lately. The next release of baby will be even more aggressive in this regard…