JaneStreet's OCaml Core library's Hashtbl interfaces

One point that may or may not be relevant in your case is that the compiler has an easier time optimizing the functor-based approach, at least according to the last benchmarks I know that focused on this, see here.

3 Likes