bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] speed regression when doing math with gawk 5


From: Andrew J. Schorr
Subject: Re: [bug-gawk] speed regression when doing math with gawk 5
Date: Sat, 20 Apr 2019 17:38:27 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Apr 20, 2019 at 02:51:08PM -0400, Andrew J. Schorr wrote:
> Yikes. This is bad. But I don't think this fix quite works. With the patch
> applied, I still have this problem in master:
> 
> bash-4.2$ yes a b c | sed 5q | ./gawk '{$0 = ++i; print $1}'                
> 
> 
> 
> 
> 
> 
> As compared to an older version:
> 
> bash-4.2$ yes a b c | sed 5q | /bin/gawk '{$0 = ++i; print $1}'
> 1
> 2
> 3
> 4
> 5
> 
> So this doesn't quite get the job done...

The attached patch passes my new test, as well as "make check" and 
"make valgrind-noleak". Can you please check whether it fixes your
performance problem? It seems to on my system.

Regards,
Andy

Attachment: storefield.patch
Description: Text document


reply via email to

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