package hc
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Hc
Source
Hash-consing library.
The implementation is based on the paper Type-Safe Modular Hash-Consing by Jean-Christophe-Filliâtre and Sylvain Conchon.
The type of hash-consed values. The node
field is the actual value and tag
is a unique integer identifier.
The output signature of the various functors Make
, MakeStrong
, Fake
and Mk
.
Hash-consing module using Ephemeron.K1.Make
as a back-end cache.
Hash-consing module using Hashtbl.Make
as a back-end cache.
Hash-consing module that does not perform hash-consing. This is useful to easily benchmark the impact of hash-consing without having to change your code too much: simply replace Make
or Makestrong
by Fake
.
The size that will be used to create a cache.
Change the size that will be used to create a cache.
Reset the size that will be used to create a cache to its default value.