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



Reply via email to