ghc-compact

In memory storage of deeply evaluated data structure

LTS Haskell 14.16:0.1.0.0@rev:3
Stackage Nightly 2019-12-08:0.1.0.0@rev:3
Latest on Hackage:0.1.0.0@rev:3

See all snapshots ghc-compact appears in

BSD-3-Clause licensed
Maintained by libraries@haskell.org

Module documentation for 0.1.0.0

This version can be pinned in stack with:ghc-compact-0.1.0.0@sha256:53db823612d532435d9fdfac8e02b6559844b62ef8fccc9232729f69410e8526,1782

This package provides minimal functionality for working with "compact regions", which hold a fully evaluated Haskell object graph. These regions maintain the invariant that no pointers live inside the struct that point outside it, which ensures efficient garbage collection without ever reading the structure contents (effectively, it works as a manually managed "oldest generation" which is never freed until the whole is released).

Internally, the struct is stored a single contiguous block of memory, which allows efficient serialization and deserialization of structs for distributed computing.

This package provides a low-level API; see also the compact package which provides a user-facing API.

Used by 3 packages in lts-14.16(full list with versions):
comments powered byDisqus