Module Memo
Tuning
val get_initial_cache_size : unit -> int
Get the value used as an initial size when creating a cache.
Generic interface
Functorial interface
module Mk : functor (Cache : Stdlib.Hashtbl.S) -> sig ... end
With the
Mk
functor, you can also directly provide aCache
module, which should have the signatureHashtbl.S
. We will include your cache module and use it to define amemo
function. It should be useful only if you want to use anotherHashtbl
implementation or things like this.
module Make : functor (H : Stdlib.Hashtbl.HashedType) -> sig ... end
Functor that can be useful in case you don't want to use polymorphic equality or you are doing things like hashconsing and you know how to compare or hash your type more efficiently.