We have this discussion in our team every day. Should product be oriented on "user" or "User".
So let the "user" run as it is is. And let the "User" be able to increase the perfomance if he realy wants to. :) As its stand now the perfomance benefit is arguable in my particular case so we probably need to postpone this discussions till sombody else will rise the issue. While thinking I have other better idea for "The User" Have you seen this: http://just4log.sourceforge.net/ The idea is to be able to use this project to inject location info into byte code. example in java code: original: log.debug("Stuff", moreStuff); modified: log.debugExt("my.class.myFunction(01):test.java", "Stuff", moreStuff); This is just the idea :) but there should be a better way. Like to put LocationInfo into stack and access this stack from the logger calss. Don't know how to do this in java but in C it is posible. I will tak to Lucas Bruand may be he has somebetter ideas. On Wed, 24 Nov 2004 17:56:36 +0100, Ceki G�lc� <[EMAIL PROTECTED]> wrote: > At 04:41 PM 11/24/2004, Vlad Skarzhevskyy wrote: > >Ceki > > I have not seen your new method in CVS. I was only reading at "whats > >is planed" on the website. > > As your experience indicates, the "Plan? What Plan?" page was very much > outdated. > > > Now I could not find this page again. > > The "Plan? What Plan?" page was removed because we did not really follow it. > > > It would be nice to have list of changes. Word or two and the way to > >find this list online as well as planned featues. > > The HISTORY file is your best bet. > > >As to my tests. > > I will test the reflection method. will keep you posted. > > > >Also I have another sugestion you have not answered! > >getLocationInformation speed linearly depend on the stack size. > >To it is faster to get new Throwable() as early as posible. > >In my tests I got two times better perfomance for this. > > You have to weigh performance related considerations with ease of use. > Having Mrs. Piggy specify whether she wants location info on a logger by > logger basis sound like too much. > > >Also my question was why I don't see any speed improvments in my real > >application? > >May be there is somthing wrong with Throwable.getStackTrace() and threads. > >Have you done any tests? > > It's hard to say. > > > > >-- > >Vlad > > -- > Ceki G�lc� > > The complete log4j manual: http://qos.ch/eclm > Professional log4j support: http://qos.ch/log4jSupport > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Vlad --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
