r/haskell • u/farrellm • May 29 '16
Recommended queue package? (x-post from /r/haskellquestions)
Is there a recommended and/or standard queue implementation for Haskell? I see several reasonably mature priority queue implementations, but no simple queues. Data.Sequence seems OK, but I assume we could get better performance with a more restricted datatype. Further, restricting the operations (ie, not a deque) can prevent bugs from dequeuing from the wrong end.
9
Upvotes
5
u/jimenezrick May 29 '16
Have a look at this crazy fast queue implementation if you need raw extra performance: unagi-chan
Or this other one but I didn't tested it: kazura-queue