Patch to Throwable and StackTraceElement (reduced CPU usage)

Mike Skells mike.skells at talk21.com
Fri Oct 14 07:54:07 UTC 2011


Hi Patrick,
you may be blind but I seem to have forgotten how to use email :-((

This time with the attachments
I hasten to add that this is not a proposal - it is overly optimised

regards

Mike



>________________________________
>From: Patrick Reinhart <patrick at reini.net>
>To: Mike Skells <mike.skells at talk21.com>
>Cc: David Holmes <david.holmes at oracle.com>; "core-libs-dev at openjdk.java.net" <core-libs-dev at openjdk.java.net>
>Sent: Friday, 14 October 2011, 6:35
>Subject: Re: Patch to Throwable and StackTraceElement (reduced CPU usage)
>
>
>Am 14.10.11 01:06, schrieb Mike Skells: 
>Hi Patrick, David,
>>
>>
>>David - I tried your suggestions, and I agree it must be faster, but it is in the noise of my test env. not very satisfactory ....
>>
>>
>>Patrick - Unfortunately Appendable doesn't provide all of the interface that you need. All of the methods throw IOException and you cannot append an int (for the line number)
>>
>>
I seem to be blind :-(  I only did a look on the implementers PrintWriter and PrintStream (which do not declare the IOException...), sorry. 
>
>Also you got right with the line number, besides to use something as
    Integer.toString(int) makes the thing even slower I guess :-(
>
>Cheers
>
>Patrick "Reini" Reinhart 
>
>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Throwable.java
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20111014/8c77bb61/Throwable.java>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: StackTraceElement.java
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20111014/8c77bb61/StackTraceElement.java>


More information about the core-libs-dev mailing list