package carton

  1. Overview
  2. Docs

Memoization of map.

Instead to systematically call map to load memory-page, we memoize the call by a simple internal table of weak pointers.

type 'fd t
and slice = {
  1. offset : int64;
  2. length : int;
  3. payload : Bigstringaf.t;
}
and ('fd, 's) map = 'fd -> pos:int64 -> int -> (Bigstringaf.t, 's) Carton__.Sigs.io
val length : int64
val reset : 'fd t -> unit
val make : 'fd -> 'fd t
val load : 's Carton__.Sigs.scheduler -> map:('fd, 's) map -> 'fd t -> int64 -> (slice option, 's) Carton__.Sigs.io
OCaml

Innovation. Community. Security.