RFR: 8317515: Unify the code of the parse*() families of methods in j.l.Integer and j.l.Long [v2]

Raffaello Giulietti rgiulietti at openjdk.org
Thu Oct 5 12:27:12 UTC 2023


On Thu, 5 Oct 2023 10:31:31 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> See the [JBS issue](https://bugs.openjdk.org/browse/JDK-8317515) for the details.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Avoid localized integers in radix-out-of-range exception messages.

The aim of this PR is _not_ to make the code faster, but to make it more uniform. It turns out to be slightly faster even without special cases, but this was not the goal, but just a by-product of the simpler structure.
Over-reliance on micro benchmarks and obsession for speed is not a guidance for this PR.

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

PR Comment: https://git.openjdk.org/jdk/pull/16050#issuecomment-1748790454


More information about the core-libs-dev mailing list