greatdane has asked for the wisdom of the Perl Monks concerning the following question:
I am always qualifying the calls with an "if" to avoid the cost of a call/return pair. Is there anything else I can do to eliminate more of the performance overhead? A better method? BTW, I want the debug calls to be an execution time option. The program has a usage with a "-debug" option. Thanks!&foo_debug ("<message>") if ($FOO_DEBUG_MODE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: conditional debug call perf
by ysth (Canon) on Jan 25, 2007 at 01:48 UTC | |
by greatdane (Beadle) on Jan 26, 2007 at 06:39 UTC | |
|
Re: conditional debug call perf
by SheridanCat (Pilgrim) on Jan 25, 2007 at 00:45 UTC | |
by greatdane (Beadle) on Jan 25, 2007 at 01:43 UTC | |
|
Re: conditional debug call perf
by ikegami (Patriarch) on Jan 25, 2007 at 01:02 UTC | |
by greatdane (Beadle) on Jan 25, 2007 at 01:47 UTC | |
by chromatic (Archbishop) on Jan 25, 2007 at 05:02 UTC |