hg: jdk7/tl/jdk: 6642323: Speeding up Single Byte Decoders; ...

Ulf Zibis Ulf.Zibis at gmx.de
Sat Jan 17 13:48:34 PST 2009


Maybe mix up the map a little:

   for (int i=0; i<map.length; i++)
       map[i] = (char)(59 * (227 - i));


Am 17.01.2009 22:28, Ulf Zibis schrieb:
> OK, let's see.
>
> BTW: the +128 trick is only used in case of decoding by map. If values 
> are only passed through (charset ISO-8859-1), the +128 trick doesn't 
> work.
>
> -Ulf
>
>
> Am 17.01.2009 21:57, Christian Thalinger schrieb:
>> On Sat, 2009-01-17 at 21:09 +0100, Christian Thalinger wrote:
>>  
>>> I decided to write my own, very simple micro-benchmark.  In the
>>> following benchmark I get a speedup of about 0.9%:
>>>     
>>
>> Yeah, but when I change the array size to 250k elements I get a slowdown
>> of 10%.  Still investigating...
>>
>> -- Christian
>>
>>
>>   
>
> ... also copy for the list :-)
>
>
>




More information about the hotspot-dev mailing list