bug-bash
[Top][All Lists]
Advanced

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

Re: Likely Bash bug


From: Dennis Williamson
Subject: Re: Likely Bash bug
Date: Tue, 16 Mar 2021 22:27:48 -0500

.

On Tue, Mar 16, 2021, 10:22 PM Lawrence Velázquez <vq@larryv.me> wrote:

> > On Mar 16, 2021, at 11:08 PM, Dennis Williamson <
> dennistwilliamson@gmail.com> wrote:
> >
> > I've been playing with your optimized code changing the read to grab data
> > in chunks like some of the other optimized code does - thus extending
> your
> > move from by-word to by-line reading to reading a specified larger number
> > of characters.
> >
> > IFS= read -r -N 4096 var
> >
> > And appending the result of a regular read to end at a newline. This
> seemed
> > to cut about 20% off the time. But I get different counts than your code.
> > I've tried using read without specifying a variable and using the
> resulting
> > $REPLY to preserve whitespace but the counts still didn't match.
> >
> > In any case this points to larger chunks being more efficient.
>
> Wrong thread?
>
> vq


Oops


reply via email to

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