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

[ bsd3, library, system ] [ Propose Tags ]

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 public 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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.1, 0.1.2, 0.2 (info)
Change log CHANGELOG.md
Dependencies base (>=4.6 && <5.0), containers (>=0.5) [details]
License BSD-3-Clause
Author Ryan Newton
Maintainer rrnewton@gmail.com
Category System
Home page https://github.com/rrnewton/thread-local-storage
Bug tracker https://github.com/rrnewton/thread-local-storage/issues
Source repo head: git clone https://github.com/rrnewton/thread-local-storage
Uploaded by ryanglscott at 2017-06-23T18:39:34Z
Distributions LTSHaskell:0.2, NixOS:0.2, Stackage:0.2
Reverse Dependencies 4 direct, 11 indirect [details]
Downloads 6182 total (38 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-06-23 [all 1 reports]

Readme for thread-local-storage-0.1.2

[back to package description]

thread-local-storage

Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build

See .cabal file for description.

Here are some example benchmark results (on an Ivy Bridge i7-3770), with a typical time of 10.4 nanoseconds to get to a TLS variable given one IO thread per OS thread:

example benchmarks