Sponsor for 6666666: A better implementation of Character.isSupplementaryCodePoint

Ulf Zibis Ulf.Zibis at gmx.de
Tue Mar 16 20:36:16 UTC 2010


Am 16.03.2010 21:28, schrieb Martin Buchholz:
> On Tue, Mar 16, 2010 at 12:48, Ulf Zibis<Ulf.Zibis at gmx.de>  wrote:
>    
>
> Hmmmm......
>
> Yes, you've convinced me!
> Done.
>    

THE meeting had it's success. ;-)


>    
>>>> - Same shift magic would enhance isISOControl(), isHighSurrogate(),
>>>> isLowSurrogate(), in particular if latter occur consecutive.
>>>>
>>>>          
>>> isISOControl - yes, others - I am not convinced.
>>>
>>>        
>> If virtually shifted by 8, HotSpot could use cheaper 1-byte compare on the
>> high byte.
>> Additionally, those methods are often used consecutively, so all 4 compares
>> would benefit from.
>>      
> Sorry, I'm still not convinced for the surrogate testing methods.
> Almost all chars are less than MIN_SURROGATE, so you have to beat
> the already amazingly cheap
> x>= MIN_SURROGATE.
>    

Good point, but ...
... what about :
6933327 <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6933327> - 
Use shifted addressing modes instead of shift instuctions
and internal review ID of 1735166

-Ulf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20100316/797f3597/attachment.html>


More information about the core-libs-dev mailing list