= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package plebeia
-
plebeia
-
-
plebeia.msync
-
plebeia.test_utils
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
1 Cache for small values
This module provides hash-consing of small Leaf values under max_leaf_size
of config
.
2 Configuration
type config = {
max_leaf_size : int;
(*Maximum size of leaf value stored in bytes
*)max_bytes_commit : int;
(*
*)shrink
wipes unpopular data when the size oft
when the table exceeds this amount of bytesmax_bytes_absolute : int;
(*
*)add
wipes unpopular data when the size oft
when the table exceeds this amount of bytesshrink_ratio : float;
}
val config_enabled : config
val config_disabled : config
val check_config : config -> (unit, unit) Stdlib.result
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
val stat : Stdlib.Format.formatter -> t -> unit
Print out statistics
val estimated_size_in_bytes : t -> int
Estimated size of the table in bytes. It returns 98-101% of the real size.
val shrink : t -> unit