Re: LocationInfo performance, StackTraceElement

2004-05-17 Thread Martin Schulz
Ceki, thanks for the encouragement ;-) Ceki Gülcü wrote: Hello Martin, Thanks for the code. What kind of improvement are we talking about? Do you have figures by any chance? We should use the Throwable.getStackTrace() method when running with JDK 1.4 and later. Doing this while keeping *compile*

LocationInfo performance, StackTraceElement

2004-05-16 Thread Martin Schulz
I have been profiling log4j a little bit and found that LocationInfo (if used in the pattern) is a particular bottleneck. I find it amazing that nobody seems to have suggested yet to use Throwable.getStackTrace() instead of parsing the output of the printout. (as of JDK 1.4). In fact, since thi