bug-bash
[Top][All Lists]
Advanced

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

Re: repeated extended pattern substitution incredibly slow w/large varia


From: address@hidden
Subject: Re: repeated extended pattern substitution incredibly slow w/large variables
Date: Mon, 19 Sep 2016 10:01:53 +0200 (MEST)



>  maybe I do not fully follow your example, but wouldn't you instead of:
>
>         time D="${C//\[+([0-9])\]=}"             # rm '[<subscr>]='
>
>  want:
> 
>         time D="${C//\[[0-9]*\]=}"               # rm '[<subscr>]='

this would also find [!asd]. And there are other possibilities.

but that was not my problem / question.

>  your example copies a lot to D and thats what takes time, I guess.

... but only if _extended_ pattern matching is used, see my examples. Why is
extended pattern matching so slow as compared to simple pattern matching.
That's the question.


----------------------------------------------------------------
Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos und 
sicher für alle!



reply via email to

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