Thanks for the suggestion! Between sawampersand and grep'ing my code, I did find an instance of $&. I removed it, but I am still seeing the problem.
I have also noticed that the size of our mod_perl processes has doubled since the upgrade (from ~50M to ~100M). Did Perl, Apache, and mod_perl really get that much bigger between the versions I mentioned in my last email? Any other suggestions on diagnosing or improving the regex would be greatly appreciated. Thanks again. - Simon -----Original Message----- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 12:55 PM To: Simon Miner Cc: mod_perl Mailing List ([EMAIL PROTECTED]) Subject: Re: mod_perl regex conundrum Simon Miner wrote: > My company has just upgraded our Apache/mod_perl and supporting software > versions, and we are now seeing a strange phenomenon. A piece of code which > has always worked speedily up to this point, now occasionally, but > predictably, takes 10 times longer to execute. The code fragment in > question is this. > my $quoted_link = qr{ ... } The first thing I'd do is check whether some code doesn't try to use $`, $&, and $', which are known to cause this kind of slowdown. See: http://search.cpan.org/dist/Devel-SawAmpersand/lib/Devel/SawAmpersand.pm It may happen under mod_perl since you usually end up loading quite a few modules into the same interpreters, including those that you aren't using for this particular code in question. -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html