[Haskell] Re: [Haskell-cafe] ANNOUNCE: enumerator, an alternative iteratee package

John Millikin jmillikin at gmail.com
Sat Aug 21 18:54:10 EDT 2010


On Sat, Aug 21, 2010 at 15:35, Paulo Tanimoto <ptanimoto at gmail.com> wrote:
> Apologies if I'm asking you to repeat yourself, but I couldn't find
> the explanation.  What was the reason why you went with IterateeM
> instead of IterateeMCPS?  Simplicity?

Iteratees are difficult enough to understand already -- requiring
prospective users to learn and understand CPS would just be another
roadblock. The CPS implementation is also slower -- I performed some
basic benchmarking of IterateeM.hs and IterateeMCPS.hs, and CPS is
only faster without optimizations. At -O, they are equal, and at -O2,
IterateeM is faster.


More information about the Haskell-Cafe mailing list