Re: Cutting down on the DEBUG bloat...

2001-05-11 Thread barries
On Thu, May 10, 2001 at 03:28:16PM -0700, Doug MacEachern wrote: http://perl.apache.org/~dougm/condsub-0.01.tar.gz see test.pl for the examples. i'm open to names/interface changes I've had good luck (on non performance critical code) doing something like (from memory): use

Re: Cutting down on the DEBUG bloat...

2001-05-10 Thread Doug MacEachern
On Tue, 10 Apr 2001, Paul Lindner wrote: Hi, As part of my ongoing effort to streamline my mod_perl apps, I've come to discover the joy of constant subroutines and perl's ability to inline or eliminate code at compile time. I have a solution that works, but would be interested in seeing

Re: Cutting down on the DEBUG bloat...

2001-05-10 Thread barries
On Thu, May 10, 2001 at 03:28:16PM -0700, Doug MacEachern wrote: On Tue, 10 Apr 2001, Paul Lindner wrote: DBG debug('whoa there boy'); FWIW, you may find the opcode-identical debug 'whoa there boy' if DBG ; more readable. Don't go to values other than 0 or 1 (not even 0 or 1) for

Cutting down on the DEBUG bloat...

2001-04-10 Thread Paul Lindner
Hi, As part of my ongoing effort to streamline my mod_perl apps, I've come to discover the joy of constant subroutines and perl's ability to inline or eliminate code at compile time. I have a solution that works, but would be interested in seeing if others had better syntactic sugar.. Anyway:

Re: Cutting down on the DEBUG bloat...

2001-04-10 Thread Jeffrey W. Baker
On Tue, 10 Apr 2001, Paul Lindner wrote: Now, my question is: Is there some trick I could use to retain the simple syntax: debug "foo bar"; I always liked using a preprocessor to turn debug code on or off. ePerl is OK, and Perl can of course be its own preprocessor. -jwb

Re: Cutting down on the DEBUG bloat...

2001-04-10 Thread Perrin Harkins
As part of my ongoing effort to streamline my mod_perl apps, I've come to discover the joy of constant subroutines and perl's ability to inline or eliminate code at compile time. I have a solution that works, but would be interested in seeing if others had better syntactic sugar.. You

Re: Cutting down on the DEBUG bloat

2001-04-10 Thread Mike Whitaker
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