Module Mavryk_raw_protocol_alpha.Cache_memory_helpers

module type SNodes = sig ... end
module Nodes : SNodes

The Nodes module is used to count the number of computation steps performed when evaluating the size of the in-memory graph corresponding to an OCaml value.

Helpers to deal with computing the in-memory size of values

type nodes_and_size = Nodes.t * sint
val string_size_gen : int -> Saturation_repr.may_saturate Saturation_repr.t
val public_key_hash_in_memory_size : Saturation_repr.may_saturate Saturation_repr.t
val ret_succ : (Nodes.t * 'a) -> Nodes.t * 'b
val option_size : ('a -> 'b Saturation_repr.t) -> 'c option -> Saturation_repr.may_saturate Saturation_repr.t
val option_size_vec : ('a -> Nodes.t * 'b Saturation_repr.t) -> 'c option -> Nodes.t * Saturation_repr.may_saturate Saturation_repr.t
val list_fold_size : ('a -> Nodes.t * 'b Saturation_repr.t) -> 'c list -> Nodes.t * Saturation_repr.may_saturate Saturation_repr.t