thread-local-storage

Several options for thread-local-storage (TLS) in Haskell.

Version on this page:0.1.0.4@rev:1
LTS Haskell 22.14:0.2
Stackage Nightly 2024-03-28:0.2
Latest on Hackage:0.2

See all snapshots thread-local-storage appears in

BSD-3-Clause licensed by Ryan Newton
Maintained by [email protected]
This version can be pinned in stack with:thread-local-storage-0.1.0.4@sha256:3bba7e8933033aa92c2767ccee383d84cc36a791773aff56d51ea95ecf12d90f,2778

Module documentation for 0.1.0.4

Depends on 2 packages(full list with versions):
Used by 1 package in nightly-2016-12-30(full list with versions):

Thread-local storage, or TLS, is an important ingredient in many algorithms and data structures.

The GHC compiler does not provide a built-in notion of TLS either at the IO-thread or OS thread level. This package provides a few different implementations of a simple TLS API.

All exported modules provide exactly the same interface with different implementations. Run the included criterion benchmark suite to ascertain which performs the best on your platform.

Example criterion benchmark data can be found here (from an Intel Ivy-Bridge i7-3770 desktop): http://www.cs.indiana.edu/~rrnewton/datasets/xmen_tls_report.html