Re:A Taste of Haskell
by NotThe1Pct on Monday October 24, 2016 @08:12PM
(#12784065)
I tried haskell queues a while ago - under the advice of a friend and compared with a straightforward C++ queue - it was about 100x slower. Abandoned the idea.
[ Parent
| on HN ]
Let me guess ... you used [a]
What are you implying? What should they have used?
The list datatype is horrendously unsuited for being used a queue. They should have used a datatype designed for use as a queue.
There are better pure queue types and STM channels and suchlike that are designed for the job, so if bench-marking then you want to be fair to Haskell and use the right type.