[slf4j-dev] [Bug 31] Varargs for Logger methods

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Mar 31 19:02:21 CEST 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=31





--- Comment #81 from Thorbjørn Ravn Andersen <thorbjoern at gmail.com>  2010-03-31 19:02:20 ---
(In reply to comment #80)
> An added bit of information. As part of my work on Log4j 2.0 I discovered that
> there is significant overhead in using varargs. The technique used by SLF4J of
> providing 1, 2, 3 parameters and then 3 + varargs reduces the overhead
> considerably. This was true even when there were no parameters being passed.

Could you elaborate on the overhead?  I thought a "new Object[] {...}" was
being produced by the compiler and that was that?


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list