in reply to Re: log4perl and efficiency
in thread log4perl and efficiency
I really think this has more to do with variable interpolation than it does with log4perl.
Comparing example A:
$self->{logger}->trace("total NbObsThis $i=$nbObservedThisNGram->[$i]; + nbObsAll $i=$nbObservedAllNGrams->[$i]; total=$totalObservedAll; nbE +xpected $i=$nbExpectedThis[$i]; chisq = $chiSquare[$i]");
with example B:
$self->{logger}->trace('no interpolation');
would be useful to demonstrate the difference in overhead between perl internals and log4perl. You're going to be stuck with interpolation performance no matter what logging framework you use.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: log4perl and efficiency
by erwan (Sexton) on Sep 12, 2011 at 19:03 UTC | |
by ForgotPasswordAgain (Priest) on Sep 12, 2011 at 22:20 UTC |
In Section
Seekers of Perl Wisdom