Fwd: Re: repeated extended pattern substitution incredibly slow w/large variables

2016-11-24 Thread Chet Ramey
--- Begin Message --- On 9/17/16 2:32 PM, xa...@t-online.de wrote: > Bash Version: 4.4 > Patch Level: 0 > Release Status: rc2 / release > > Description: > The tests below were performed with 4.4.0-rc2. However, the problem is > still present in 4.4.0-release, only execution times are

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

2016-09-19 Thread Chet Ramey
On 9/18/16 5:32 AM, xa...@t-online.de wrote: > Bash Version: 4.4 > Patch Level: 0 > Release Status: rc2 / release > > Description: > The tests below were performed with 4.4.0-rc2. However, the problem is > still present in 4.4.0-release, only execution times are even higher > fo

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

2016-09-19 Thread xa...@t-online.de
> maybe I do not fully follow your example, but wouldn't you instead of: > > time D="${C//\[+([0-9])\]=}" # rm '[]=' > > want: > > time D="${C//\[[0-9]*\]=}" # rm '[]=' this would also find [!asd]. And there are other possibilities. but that was not

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

2016-09-18 Thread Piotr Grzybowski
Hi, maybe I do not fully follow your example, but wouldn't you instead of: time D="${C//\[+([0-9])\]=}" # rm '[]=' want: time D="${C//\[[0-9]*\]=}" # rm '[]=' your example copies a lot to D and thats what takes time, I guess. cheers, pg On 18