RFR: 8347009: Speed ​​up parseInt and parseLong [v10]

Shaojin Wen swen at openjdk.org
Wed Jan 29 11:56:52 UTC 2025


On Wed, 29 Jan 2025 01:55:10 GMT, Johannes Graham <duke at openjdk.org> wrote:

> A nice enhancement would be to allow `String.parseInt(CharSequence,int,int,int)` to also use this code when the CharSequence actually was a String. Could benefit, for example, `java.util.Formatter`

Your suggestion is very good, but I think we can submit another PR after the current PR is completed to expand the scenarios supported by this optimization and reduce duplicate code.

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

PR Comment: https://git.openjdk.org/jdk/pull/22919#issuecomment-2621436661


More information about the core-libs-dev mailing list