in reply to log4perl and efficiency
ok so basically nothing can be done except not calling Log4perl at all in the frequently executed code.
tested using a variable $self->{disable_logger} initialized once if the level is OFF and tested before calling log4perl (instead of $logger->is_debug()): my program takes about 25% less time, as expected... Log4perl is a bit disappointing, indeed.
Thank you for your answers!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: log4perl and efficiency
by Solo (Deacon) on Sep 12, 2011 at 18:29 UTC | |
by erwan (Sexton) on Sep 12, 2011 at 19:03 UTC | |
by ForgotPasswordAgain (Vicar) on Sep 12, 2011 at 22:20 UTC |