Does a series of yields still exploit the benefits of decoupling? (e.g., 
independently able to stop the stream) - E

On Sunday, February 26, 2017 at 3:50:40 PM UTC-5, Gabriel Gonzalez wrote:
>
> B might sometimes be faster than A because `(~>)` is easier to optimize 
> than `(>->)`
>
> On Feb 26, 2017, at 12:24 PM, Edmund Cape <[email protected] 
> <javascript:>> wrote:
>
> If presented with the following design choices:
>
> A.  getRecords h >-> parsePipe >-> P.print
>
>               ...where the getRecords both awaits and yields
>
>
>
> B. ( (a -> m b) ~> (b -> m c) ) h >-> P.print 
>    
>                ... where each of the kleisli arrows yields
>
>
> Does A have 2 decoupled points
>
>   #1. between getRecords h >-> and parsePipe
>   #2. between parsePipe and P.print's
>
> Versus B only one between the final yield from the second k :: (b -> m c) 
> and the await from P.print?
>
> If so, is there a performance consideration?
>
> Thanks in advance for letting me know.
>
> - E
>
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
>
>
>

-- 
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