Closed archblob closed 11 years ago
Well, it was not my intention for you to merge this seeing as it's not all of Pipes.Prelude, after your feedback I wanted to complete it, squash all the commits and reopen a clean pull request. :-P
Oops! I'm sorry about that. :)
I will give you some feedback then later today and we can improve on it.
Ok, here are some comments that I have as I go through your code:
run . (discard <\\)
into a single function: drain p = run (for p discard)
each
vs enumFromTo
. That's one of the more important benchmarks.runIdentity
before using whnf
and in other places you don'tpipes-3
.Cabal
that supports benchmarking. I already lowered it to 1.14 because that's the one I have installed, but maybe it can go even lower.Again, I'm sorry about prematurely merging in your work. If you open up a new pull request with any additional changes I won't merge it in until we both agree it is ready.
Awesome! I'll go ahead and merge this in. Thanks so much for contributing this!