[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Counting number of matches in record/string
From: |
Jarno Suni |
Subject: |
Re: [bug-gawk] Counting number of matches in record/string |
Date: |
Fri, 4 Sep 2015 20:04:27 +0300 |
On Fri, 04 Sep 2015 16:14:10 +0300
Aharon Robbins <address@hidden> wrote:
> > I which gsub(regex,"&",[string]) was optimized to count matches, if
> ^^^^^ You mean "wish"
yes and [,string]
> > not done already. Or is there a better way to count matches in
> > record/string?
>
> I don't think I want to add code for that special case.
Could you point me to the right part of code, so that I can do some
experimenting?
> Nonetheless, I suspect that if you time such a thing with LC_ALL=C
> set in the environment, it will run somewhat faster than in a
> Unicode locale.
I did not notice any advance of that or of using -b option.
--
Jarno Ilari Suni - http://www.iki.fi/8/