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!
In reply to Re: log4perl and efficiency
by erwan
in thread log4perl and efficiency
by erwan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |