bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examples of concurrent coproc usage?


From: Chet Ramey
Subject: Re: Examples of concurrent coproc usage?
Date: Wed, 17 Apr 2024 09:39:01 -0400
User-agent: Mozilla Thunderbird

On 4/16/24 2:46 AM, Carl Edquist wrote:

But the shell is pretty slow when you ask it to shovel data around like this.  The 'read' builtin, for instance, cautiously does read(2) calls of a single byte at a time.

It has to do it that way to find the delimiter on a non-seekable file
descriptor, since it has to leave everything it didn't consume available
on stdin.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]