unagi-chan: Fast and scalable concurrent queues for x86, with a Chan-like API
This library provides implementations of concurrent FIFO queues (for both general boxed and primitive unboxed values) that are fast, perform well under contention, and offer a Chan-like interface. The library may be of limited usefulness outside of x86 architectures where the fetch-and-add instruction is not available.
Here is an example benchmark measuring the time taken to concurrently write and read 100,000 messages, with work divided amongst increasing number of readers and writers, comparing against the top-performing queues in the standard libraries, with an inset graph showing a zoomed-in view on the implementations here.

Modules
[Index]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| compare-benchmarks | Disabled | |
| dev | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- unagi-chan-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.4.0.0, 0.4.1.0, 0.4.1.1, 0.4.1.2, 0.4.1.3, 0.4.1.4 |
|---|---|
| Change log | CHANGELOG.markdown |
| Dependencies | atomic-primops (>=0.6.0.5 && <=0.6.0.6), base (>=4.7 && <5), primitive (>=0.5.3) [details] |
| License | BSD-3-Clause |
| Author | Brandon Simmons |
| Maintainer | brandon.m.simmons@gmail.com |
| Uploaded | by BrandonSimmons at 2014-10-07T17:29:30Z |
| Revised | Revision 1 made by HerbertValerioRiedel at 2018-10-01T21:32:25Z |
| Category | Concurrency |
| Source repo | head: git clone https://github.com/jberryman/unagi-chan.git -b master |
| Distributions | Arch:0.4.1.4, LTSHaskell:0.4.1.4, Stackage:0.4.1.4 |
| Reverse Dependencies | 36 direct, 177 indirect [details] |
| Executables | dev-example |
| Downloads | 24327 total (43 in the last 30 days) |
| Rating | 2.5 (votes: 5) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |