in reply to Re: Need to speed up many regex substitutions and somehow make them a here-doc list
in thread Need to speed up many regex substitutions and somehow make them a here-doc list
The OP could slice the input into big chunks separated at newline boundaries.
If that's not possible he could alternatively use a sliding window which always continues at the pos where the last replacement ended.
On a side note, your map qr{...} join ... irritated me a bit, because the processed list has only one element. Not sure if that's the clearest style.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need to speed up many regex substitutions and somehow make them a here-doc list
by AnomalousMonk (Archbishop) on Oct 02, 2022 at 20:02 UTC | |
by LanX (Saint) on Oct 02, 2022 at 22:39 UTC |