hashcons arena
A hash consing arena for efficient interning of values.
This arena allows you to intern values such that structurally equal values will yield the same reference, thus saving memory and improving performance in scenarios where many identical values are used.
Example
use HashConsArena;
let arena = new;
let a = arena.intern;
let b = arena.intern;
assert!; // a and b are the same reference
Safety
The crate uses unsafe in a number of places, and has been tested using miri.