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.

_______________________________________________
user mailing list
user@slf4j.org
http://www.slf4j.org/mailman/listinfo/user

Reply via email to