Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v21]

2024-09-05 Thread duke
On Thu, 5 Sep 2024 00:48:26 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > suggesti

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v21]

2024-09-05 Thread Claes Redestad
On Thu, 5 Sep 2024 00:48:26 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > suggesti

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v21]

2024-09-04 Thread Chen Liang
On Thu, 5 Sep 2024 00:48:26 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > suggesti

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v21]

2024-09-04 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: suggestion from @liach - Changes: - all: https://git.open

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Chen Liang
On Wed, 4 Sep 2024 23:14:35 GMT, Shaojin Wen wrote: >> test/jdk/java/lang/String/CountNonZeroAscii.java line 35: >> >>> 33: * @modules java.base/jdk.internal.access >>> 34: * @summary test latin1 String countNonZeroAscii >>> 35: * @run testng/othervm -XX:+CompactStrings CountNonZeroAscii >>

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Shaojin Wen
On Wed, 4 Sep 2024 18:09:31 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> from @cl4es 's suggestion > > test/jdk/java/lang/String/CountNonZeroAscii.java line 35: > >> 33: * @modules java.base/jdk

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Chen Liang
On Wed, 4 Sep 2024 12:01:37 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > from @cl

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-04 Thread Chen Liang
On Wed, 4 Sep 2024 11:54:48 GMT, Claes Redestad wrote: >> Let’s not add this, because normal logic should not pay the cost for >> abnormal logic > > Agreed in principle, but not sure the cost of this quick fail-fast sanity > test would be noticeable? If we add this, we should add this before t

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Claes Redestad
On Wed, 4 Sep 2024 12:01:37 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > from @cl

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Claes Redestad
On Wed, 4 Sep 2024 12:01:37 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > from @cl

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Shaojin Wen
On Wed, 4 Sep 2024 12:01:37 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > from @cl

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v20]

2024-09-04 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: from @cl4es 's suggestion - Changes: - all: https://git.o

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-04 Thread Claes Redestad
On Wed, 4 Sep 2024 11:48:46 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java >> line 165: >> >>> 163: int countNonZeroAscii = JLA.countNonZeroAscii(str); >>> 164: int utflen = strlen; >>> 165: if (countNonZeroAscii !=

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-04 Thread Shaojin Wen
On Wed, 4 Sep 2024 10:59:33 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> optimize for utf16 > > src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java > line 165: > >> 16

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v19]

2024-09-04 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Unused local variable - Changes: - all: https://git.openj

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v18]

2024-09-04 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base/share/classes/jdk/internal/access/JavaLangAccess.jav

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-04 Thread Claes Redestad
On Tue, 3 Sep 2024 16:27:58 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > optimize

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 16:27:58 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > optimize

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-03 Thread Shaojin Wen
On Tue, 3 Sep 2024 16:27:58 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > optimize

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: optimize for utf16 - Changes: - all: https://git.openjdk.

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v16]

2024-09-03 Thread Shaojin Wen
On Tue, 3 Sep 2024 15:24:02 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision: > > - sugges

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v16]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision: - suggestion from @cl4es - Revert "countGreaterThanZero -> CountNonNegat

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v14]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 14:32:16 GMT, Shaojin Wen wrote: >> We might rename these to `countAscii` and `countModifiedUtf8Compatible`. > > ascii includes '\0', `CountModifiedUtf8Compatible` Newbies don't seem to know > what it means I think naming internal low-level methods based precisely on what the

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v15]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 13:22:41 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > countGre

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v14]

2024-09-03 Thread Shaojin Wen
On Tue, 3 Sep 2024 13:45:26 GMT, Chen Liang wrote: >> src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java line 397: >> >>> 395: >>> 396: /** >>> 397: * if string#coder() is Latin1 return the count of string#value() >>> leading greater than zero, else return 0 >> >> Ca

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v14]

2024-09-03 Thread Chen Liang
On Tue, 3 Sep 2024 12:42:08 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update src/java.base/share/classes/java/lang/System.java >> >> Co-authored-by: Claes Redestad > > src/java.base/s

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v15]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: countGreaterThanZero -> CountNonNegatives - Changes: - al

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v14]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 12:37:05 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > Update s

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v14]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Update src/java.base/share/classes/java/lang/System.java Co-authored

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v13]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 11:27:53 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > fix test

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v13]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: fix testcase - Changes: - all: https://git.openjdk.org/jd

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v12]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision: - improve benchmark, from @liach & @cl4es - remove 256 - C

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-03 Thread Shaojin Wen
On Tue, 3 Sep 2024 09:11:06 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - code style >> - remove unsafe > > src/java.base/share/classes/jdk/internal/classfile/impl/BufWriterImpl.java > line

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v11]

2024-09-03 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision: - optimize writeUTF - stringCoder -> isLatin1 - Changes:

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 08:54:39 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - code style >> - remove unsafe > > test/micro/org/openjdk/bench/java/lang/classfile/Utf8EntryWriteTo.java line > 76:

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 00:38:40 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision: > > - code s

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-03 Thread Claes Redestad
On Tue, 3 Sep 2024 00:38:40 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision: > > - code s

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-02 Thread Shaojin Wen
On Tue, 3 Sep 2024 00:38:40 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with two additional > commits since the last revision: > > - code s

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v10]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with two additional commits since the last revision: - code style - remove unsafe - Changes: - all: https://g

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v9]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: bug fix countGreaterThanZero - Changes: - all: https://gi

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v8]

2024-09-02 Thread Claes Redestad
On Mon, 2 Sep 2024 15:27:59 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > typo Th

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v8]

2024-09-02 Thread Claes Redestad
On Mon, 2 Sep 2024 15:27:59 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > typo sr

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-09-02 Thread Shaojin Wen
On Fri, 30 Aug 2024 18:46:08 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Suggestions from @cl4es, rename hasNegativeOrZeros to >> isLatin1GreaterThanZero > > If a non-ascii is in the middle or t

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v8]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: typo - Changes: - all: https://git.openjdk.org/jdk/pull/2

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v7]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: suggestion from @liach - Changes: - all: https://git.open

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v6]

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 15:11:56 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > suggesti

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v6]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: suggestion from @liach - Changes: - all: https://git.open

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v5]

2024-09-02 Thread Chen Liang
On Mon, 2 Sep 2024 14:06:42 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev exclude

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v4]

2024-09-02 Thread Shaojin Wen
On Fri, 30 Aug 2024 19:39:32 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > optimiz

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v5]

2024-09-02 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v5]

2024-09-02 Thread ExE Boss
On Mon, 2 Sep 2024 14:03:55 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev exclude

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v4]

2024-09-02 Thread Claes Redestad
On Fri, 30 Aug 2024 19:39:32 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > optimiz

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v4]

2024-08-30 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: optimize Utf8EntryImpl#writeTo(UTF) - Changes: - all: htt

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-08-30 Thread Chen Liang
On Fri, 30 Aug 2024 17:08:33 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > Suggest

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v3]

2024-08-30 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: Suggestions from @cl4es, rename hasNegativeOrZeros to isLatin1GreaterThan

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v2]

2024-08-30 Thread Claes Redestad
On Fri, 30 Aug 2024 05:24:58 GMT, Shaojin Wen wrote: >> Use fast path for ascii characters 1 to 127 to improve the performance of >> writing Utf8Entry to BufferWriter. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > add com

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v2]

2024-08-29 Thread Chen Liang
On Fri, 30 Aug 2024 05:21:46 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java >> line 441: >> >>> 439: } >>> 440: else { >>> 441: int charLength = stringValue.length(); >> >> In the slo

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v2]

2024-08-29 Thread Shaojin Wen
On Fri, 30 Aug 2024 04:41:15 GMT, Chen Liang wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> add comments > > src/java.base/share/classes/jdk/internal/classfile/impl/AbstractPoolEntry.java > line 441: > >> 439:

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v2]

2024-08-29 Thread Shaojin Wen
> Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: add comments - Changes: - all: https://git.openjdk.org/jd

Re: RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo

2024-08-29 Thread Chen Liang
On Thu, 29 Aug 2024 14:38:20 GMT, Shaojin Wen wrote: > Use fast path for ascii characters 1 to 127 to improve the performance of > writing Utf8Entry to BufferWriter. src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java line 394: > 392: void inflateBytesToChars(byte[] src, in

RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo

2024-08-29 Thread Shaojin Wen
Use fast path for ascii characters 1 to 127 to improve the performance of writing Utf8Entry to BufferWriter. - Commit messages: - bug fix - optimize Utf8EntryImpl#writeTo Changes: https://git.openjdk.org/jdk/pull/20772/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20772