Ah yes...
I remember it well.
CricInfo's home grown advert engine (mod_perl resident) was running like
the proverbial drain, and being its author, I was tasked to find out why.
A brief course through Devel::DProf later, we found the top of the
profiling tree in terms of time spent to be a sub() which basically went
sub debug
{
print @_ if $AdLib::DEBUG;
}
It was using over HALF the execution time.
--
Mike Whitaker | Work: +44 1733 766619 | Work: [EMAIL PROTECTED]
System Architect | Fax: +44 1733 348287 | Home: [EMAIL PROTECTED]
CricInfo Ltd | GSM: +44 7971 977375 | Web: http://www.cricket.org/