[slf4j-dev] Final keyword in NOP
Ceki Gülcü
listid at qos.ch
Sat Feb 24 16:34:41 CET 2007
At 11:35 PM 2/21/2007, Eric Crahen wrote:
>(It would be nice to get finals taken off methods of the NOP
>implementation for this release)
Hi Eric,
Removing the final keyword might not be such a good idea. Performance
conscious users might want to replace NOP as their logging implementation.
For them, the 1 or 2 nanoseconds eked out by the JIT compiler when NOP
class is final might be worthwhile.
I am not sure this is a realistic scenario but the final keyword serves a
purpose.
Is there a different way to achieve your goal?
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the slf4j-dev
mailing list