[slf4j-user] Java 5 version of SLF4J?

Erik van Oosten e.vanoosten at grons.nl
Fri May 2 15:54:27 CEST 2008


Simon Kitching wrote:
> A push is quick, and cleaning up a callstack afterwards is normally done in fixed-time, regardless of what was on the stack. If params are passed in registers, it is even quicker. So IMO, SLF4J's approach is fine from a performance approach. Sorry if my mail wasn't clear on that.
>
> IMO, creating the Object[] is worth avoiding, however, which rules out real varargs implemetations [1]. The cost is not just creating, but also garbage-collection afterwards.
Yes, that is true but negligible as well. Newer JVM's (I believe 
starting from JSE5) will clean up shortly, or unused variables in  fixed 
time as well. Objects can even be created on the call stack!

Regards,
    Erik.




More information about the slf4j-user mailing list