Re: Unicode script support in Regex and Character class

2010-04-26 Thread Xueming Shen
Ulf Zibis wrote: I would like to have the 3 special cases INHERITED, COMMON and UNKNOWN together at the beginning or end of the enum list. Why? Since the current list is generated by the script from the Scripts.txt, it's in the order of what they are in the Scripts.txt, any particular reason

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Xueming Shen
Ulf Zibis wrote: Am 24.04.2010 01:09, schrieb Xueming Shen: I changed the data file "format" a bit, so now the overal uniName.dat is less than 88k (last version is 122+k), but the I can no long use cpLen as the capacity for the hashmap. I'm now using a hardcoded 2 for 5.2. Again, is 88k

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Ulf Zibis
Am 24.04.2010 01:09, schrieb Xueming Shen: I changed the data file "format" a bit, so now the overal uniName.dat is less than 88k (last version is 122+k), but the I can no long use cpLen as the capacity for the hashmap. I'm now using a hardcoded 2 for 5.2. Again, is 88k the compressed or

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Ulf Zibis
Am 27.04.2010 00:01, schrieb Xueming Shen: Ulf Zibis wrote: I would like to see the full names redundantly in the aliases map. Needs only ~100 * (4 + 4) bytes in HashMap. This is the implementation details, we can defer the difference for now. I said that with the alternative of UnicodeScript

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Xueming Shen
Ulf Zibis wrote: Am 26.04.2010 07:28, schrieb Xueming Shen: Can I assume we are all OK with at least the API part of the latest webrev/blenderrev of the script support in j.l.Character and j.u.r.Pattern, including the j.l.Chareacter.getName(). I guess you mean: public static enum Unicod

New portion of improvements for Dual-Pivot Quicksort

2010-04-26 Thread Vladimir Iaroslavski
Hello, everyone! I've investigated the implementation of the Dual-Pivot Quicksort which is used for sorting primitives and here is my result: http://cr.openjdk.java.net/~alanb/6947216/webrev.00 New implementation of Dual-Pivot Quicksort is faster than previous one of 12% for client VM and few pe

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Xueming Shen
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?

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Ulf Zibis
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.

Re: Unicode script support in Regex and Character class

2010-04-26 Thread Ulf Zibis
Am 26.04.2010 07:28, schrieb Xueming Shen: Can I assume we are all OK with at least the API part of the latest webrev/blenderrev of the script support in j.l.Character and j.u.r.Pattern, including the j.l.Chareacter.getName(). I guess you mean: public static enum UnicodeScript {