Re: Character.java methods are slower than Surrogate.java's

2009-12-07 Thread Ulf Zibis

Am 07.12.2009 11:19, Christian Thalinger schrieb:

On Wed, 2009-10-28 at 22:44 +0100, Ulf Zibis wrote:
  

Hi Christian,

for a benchmark test I have replaced all sun.nio.cs.Surrogate methods in 
sun.nio.cs.ext.EUC_TW with corresponding ones from java.lang.Character.


As result, the overall encoding performance was 10 % worse, so 
java.lang.Character's methods must be much worser.


Can you have a look, if there is a chance to better optimize 
java.lang.Character methods from HotSpot compiler side.



I think you're already looking into this yourself.  -- Christian


  

Yes, correct, I'm trying...

-Ulf



Re: Character.java methods are slower than Surrogate.java's

2009-12-07 Thread Christian Thalinger
On Wed, 2009-10-28 at 22:44 +0100, Ulf Zibis wrote:
> Hi Christian,
> 
> for a benchmark test I have replaced all sun.nio.cs.Surrogate methods in 
> sun.nio.cs.ext.EUC_TW with corresponding ones from java.lang.Character.
> 
> As result, the overall encoding performance was 10 % worse, so 
> java.lang.Character's methods must be much worser.
> 
> Can you have a look, if there is a chance to better optimize 
> java.lang.Character methods from HotSpot compiler side.

I think you're already looking into this yourself.  -- Christian