package ancient

  1. Overview
  2. No Docs
Use data structures larger than available memory

Install

Dune Dependency

Authors

Maintainers

Sources

ancient-0.10.0.tbz
sha256=5de5543eb760ed0495ed5d13cfc3248f98efccab580fd0ce37eb6df6492e0873
sha512=afb5349a9f242d7bc2f438b075f633305624768cb963fd277ff2b6866fa9f63be53350c1f897f87a53ccaea105b495eea6ce510b5b0ce0ae68ad863d865677ea

Description

This module allows you to use in-memory data structures which are larger than available memory and so are kept in swap. If you try this in normal OCaml code, you'll find that the machine quickly descends into thrashing as the garbage collector repeatedly iterates over swapped memory structures. This module lets you break that limitation. Of course the module doesn't work by magic :-) If your program tries to access these large structures, they still need to be swapped back in, but it is suitable for large, sparsely accessed structures.

Secondly, this module allows you to share those structures between processes. In this mode, the structures are backed by a disk file, and any process that has read/write access that disk file can map that file in and see the structures.

Published: 24 Jun 2025

Dependencies (4)

  1. ocaml >= "5"
  2. ocaml-option-nnp
  3. ocaml < "5"
  4. dune >= "3.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.