> On Mar 16, 2021, at 11:08 PM, Dennis Williamson <dennistwilliam...@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