On Wed, 5 Feb 2025 17:06:57 GMT, Shaojin Wen <s...@openjdk.org> wrote:
>> This is an optimization for decimal Integer.parseInt and Long.parseLong, >> which improves performance by about 10%. The optimization includes: >> 1. Improve performance by parsing 2 numbers at a time, which has performance >> improvements for numbers with length >= 3. >> 2. It uses charAt(0) for the first number. Assuming that the optimization >> can eliminate boundary checks, this will be more friendly to parsing numbers >> with length 1. >> 3. It removes the reliance on the Character.digit method and eliminates the >> reliance on the CharacterDataLatin1#DIGITS cache array, which avoids >> performance degradation caused by cache misses. > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > > remove ForceInline I have made a patch to move the multi-byte read/write access code to ByteArray, and have VarHandle delegate to it instead: https://github.com/openjdk/jdk/compare/master...liachmodded:jdk:cleanup/bytearray?expand=1 I am currently running it through tier 1-5 tests. Will create a PR if the tests look good. ------------- PR Comment: https://git.openjdk.org/jdk/pull/22919#issuecomment-2638232636