dominic01 has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Improving performance
by Athanasius (Archbishop) on Mar 14, 2015 at 12:46 UTC | |
by LanX (Saint) on Mar 14, 2015 at 12:57 UTC | |
|
Re: Improving performance
by Anonymous Monk on Mar 14, 2015 at 12:54 UTC | |
|
Re: Improving performance
by AnomalousMonk (Archbishop) on Mar 14, 2015 at 15:09 UTC | |
|
Re: Improving performance
by hdb (Monsignor) on Mar 14, 2015 at 13:05 UTC |