package plebeia
Module Plebeia.HashconsSource
1 Cache for small values
This module provides hash-consing of small Leaf values under max_leaf_size of config.
2 Configuration
Source
type config = {max_leaf_size : int;(*Maximum size of leaf value stored in bytes
*)max_bytes_commit : int;(*
*)shrinkwipes unpopular data when the size oftwhen the table exceeds this amount of bytesmax_bytes_absolute : int;(*
*)addwipes unpopular data when the size oftwhen the table exceeds this amount of bytesshrink_ratio : float;
} 2 Table
Create an empty hashcons table. To load the existing hashconsed table from the storage, read must be used.
Find the hasheconsed value from the table
2 Statistics
Print out statistics
Estimated size of the table in bytes. It returns 98-101% of the real size.