I have a big Perl script (~7000 lines) with thousand of regular expressions. Though it is working fine, now I am checking the possibilities of improving its performance. I am using a pattern (?:[.,:;] ?| ) in about 250 places. If I define it in qr/(?:[.,:;] ?| )/ and use the variable in the regular expression, I don't see any any improvement. Like the above I have identified few more patterns.
Appreciate any suggestion or pointers in this regard
In reply to Improving performance by dominic01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |