I should have stated the obvious that pipe2 fails because it is interested 
in chunk boundaries. 
Is this the intended behavior?  We can see the difference if we run

     pipes2a h = do let pipe = P.parsed entry (PB.chunksOf' 10 $ 
PB.fromHandle h >-> PB.drop 1) >> return ()
                    P.fold (+) 0 id pipe >>= print

instead. Then we get close to the correct result.

     $ time ./iostreamsbench pipes2a
     12357925369121

     real 0m11.048s



-- 
You received this message because you are subscribed to the Google Groups 
"Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to