bug-gawk
[Top][All Lists]
Advanced

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

Re: gawk -i inplace is an order of magnitude faster when also redirectin


From: arnold
Subject: Re: gawk -i inplace is an order of magnitude faster when also redirecting stdout
Date: Sun, 03 Mar 2024 23:52:54 -0700
User-agent: Heirloom mailx 12.5 7/5/10

> On Thu, Feb 29, 2024 at 10:01:30AM -0700, arnold@skeeve.com wrote:
> > Andy - can you look at this? Try: in inplace_begin
> > - dup stdout to a new fd and save it as now
> > - do freopen on stdout to the file. this should set block buffering
> > 
> > In inplace_end, do freopen of /dev/fd/NNN where NNN is the duped
> > fd from the original stdout.

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> Hi, sorry, I was planning to give this a try. I guess you're saying
> it didn't work.

Right. I tried a number of things, none of which worked. So I
went with a doc patch. I spent 2+ hours on it total, which was
more than enough time.

Ed, I may revise the doc further the next time I do a complete
review of the manual. For now, what's there will have to do.

Thanks,

Arnold



reply via email to

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