in reply to Word replace - notetab light vs perl
Your code could still be optimized to run two magnitudes faster.
If you'll match/replace entire contents as a string with a single s///g expression, instead of your "while" construct, you'll see dramatic speed increase.
You'll be surprised many times to see how fast Perl sometimes is....
Best regards,
Courage, the Cowardly Dog
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Word replace - notetab light vs perl
by kiat (Vicar) on Oct 06, 2005 at 15:02 UTC | |
by Courage (Parson) on Oct 06, 2005 at 18:18 UTC | |
by tilly (Archbishop) on Oct 11, 2005 at 04:03 UTC |
In Section
Meditations