You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Mike Whitaker <mi...@altrion.org> on 2001/04/10 22:46:51 UTC

Re: Cutting down on the DEBUG bloat

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: mike@cricket.org
System Architect | Fax:  +44 1733 348287 | Home: mike@altrion.org
CricInfo Ltd     | GSM:  +44 7971 977375 | Web: http://www.cricket.org/