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

2008-12-19 Thread Brad Wetmore
If you want to see the source change now, check out the changeset: http://hg.openjdk.java.net/jdk7/tl/jdk/rev/b89ba9a6d9a6 This change will not be seen immediately in the JDK7 snapshot source and binaries. As you may know, we use a series of subgates to make development and testing easier, a

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

2008-12-19 Thread Ulf Zibis
Hi Sherman, where can I get information, if this changeset is included in JDK7 snapshot source bundle + snapshot binaries? Regards, Ulf Am 10.12.2008 23:10, xueming.s...@sun.com schrieb: Changeset: b89ba9a6d9a6 Author:sherman Date: 2008-12-10 14:03 -0800 URL: http://hg.openjd

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

2008-12-15 Thread Ulf Zibis
Maybe: for (int sl = sp + (sr <= dr ? sr : dr); sp != sl; sp++, dp++) is little more faster than: for (int sl = sp + (sr <= dr ? sr : dr); sp < sl; sp++, dp++) -Ulf Am 15.12.2008 21:56, Ulf Zibis schrieb: Maybe little faster, especially for short strings: private Coder

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

2008-12-15 Thread Ulf Zibis
Maybe little faster, especially for short strings: private CoderResult decodeArrayLoop(ByteBuffer src, CharBuffer dst) { byte[] sa = src.array(); int sp = src.arrayOffset() + src.position(); int sr = src.remaining(); // faster than ... src.arrayOffset() + s