![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: log4perl and efficiencyby ForgotPasswordAgain (Priest) |
on Sep 12, 2011 at 22:20 UTC ( #925585=note: print w/replies, xml ) | Need Help?? |
Better yet, use a constant instead of a hashref lookup, and the whole if block will be obliterated at compile time when you disable debugging.
FWIW, my experience has been like Solo's, where you end up inadvertently evaluating the arguments to the logging methods, and this takes a lot of time (or a little bit of time in a tight loop that's called a zillion times).
In Section
Seekers of Perl Wisdom
|
|