Am 16.03.2010 21:28, schrieb Martin Buchholz:
On Tue, Mar 16, 2010 at 12:48, Ulf Zibis<[email protected]>  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

Reply via email to