Popularity
6.0
Declining
Activity
0.0
Stable
15
2
3
Monthly Downloads: 36
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Concurrency
Concurrent
Latest version: v0.1.9
concurrent-hashtable alternatives and similar packages
Based on the "concurrent" category.
Alternatively, view concurrent-hashtable alternatives based on common mentions on social networks and blogs.
-
concurrent-machines
Concurrency features for the Haskell machines package -
concurrent-supply
A fast globally unique variable supply with a pure API
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
Do you think we are missing an alternative of concurrent-hashtable or a related project?
README
A thread-safe hash table for multi-cores
You can find benchmarks and more information about the internals of this package here.
Installation
stack install
Usage Example
> ht <- newWithDefaults 4 -- creates hash table of initial size 4
> insert ht 1 "hello" -- adds key-value pair (1,"hello")
> insert ht 2 "world" -- adds key-value pair (2,"world")
> atomically $ readAssocs ht -- convert to a key-value list
[(1,"hello"),(2,"world")]
> readSizeIO ht -- returns 4
> insert ht 3 "!" -- adds key-value pair (3,"!") and triggers a resize as the load fraction is ≥ 0.75
> readSizeIO ht -- returns 8
> atomically $ readAssocs ht -- convert to a key-value list
[(1,"hello"),(3,"!"),(2,"world")]