http://hackage.haskell.org/package/thread-local-storage "thread-local-storage package on Hackage" [Haskell.org]: http://www.haskell.org "The Haskell Programming Language" [tl;dr Legal: BSD3]: https://tldrlegal.com/license/bsd-3-clause-license-%28revised%29 "BSD 3-Clause License (Revised)"
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:
Fix the benchmark suite with
Data.TLS.PThread.Internal. Note that there are no API guarantees whatsoever with this module, so use it with caution.
extra-libraries. Without it, some systems suffer from linker errors when using this library.
- Fix build on GHC 7.6 and 7.8.