On 2008-Nov-05 17:40:11 +0400, rihad <[EMAIL PROTECTED]> wrote:
>Imagine this shell pipeline:
>
>sh prog1 | sh prog2
>
>
>As given above, prog1 blocks if prog2 hasn't yet read previously written
>data (actually, newline separated commands) or is busy. What I want is
>for prog1 to never block:
>
>sh prog1 | buffer | sh prog2

There's also misc/mbuffer which is supposed to be an enhancement of
misc/buffer - though I haven't used either.  I have a program I wrote
to do this but it's not in a releasable state.

>Wouldn't such an intermediary tool be a great way to boost performance
>for certain types of solutions?

I've found that for dump|restore or dump|gzip, I can get quite significant
speedups by adding a buffer that is several hundred MB in the middle.

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

Attachment: pgpeKTc03ONqf.pgp
Description: PGP signature

Reply via email to