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

Chen Liang liach at openjdk.org
Fri Aug 30 18:48:19 UTC 2024


On Fri, 30 Aug 2024 17:08:33 GMT, Shaojin Wen <swen at openjdk.org> 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:
> 
>   Suggestions from @cl4es, rename hasNegativeOrZeros to isLatin1GreaterThanZero

If a non-ascii is in the middle or the end of a string, this patch may add an overhead. Offline benchmark results show that this actually brings a regression in the startup of a jetty server.

-------------

Changes requested by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20772#pullrequestreview-2273287184


More information about the core-libs-dev mailing list