Unicode script support in Regex and Character class

Xueming Shen xueming.shen at oracle.com
Mon Apr 26 15:08:08 UTC 2010


Ulf Zibis wrote:
> Am 24.04.2010 01:09, schrieb Xueming Shen:
>> Ulf Zibis wrote:
>>>
>>> - I like the idea, saving the data in a compressed binary file, 
>>> instead classfile static data.
>>> - wouldn't PreHashMaps be faster initialized as a normal HashMaps in 
>>> j.l.Character.UnicodeScript and j.l.CharacterName?
>> I don't think so. The key for these 2 cases is the whole unicode 
>> range. But you can always try. Current
>> binary-search for script definitely is not a perfect solution.
>
> I think, the aliases map is perfectly predestined for PreHashMap.
>
PreHashMap normally is used in place that the inti cost is critical for 
startup time. I
don't think it's a concern here.

-Sherman



More information about the core-libs-dev mailing list