RFR: 8347009: Speed up parseInt and parseLong [v3]
j3graham
duke at openjdk.org
Sun Jan 5 07:10:08 UTC 2025
On Sun, 5 Jan 2025 00:12:03 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> 2. The leading zero scenario is not common, and there is no need to optimize this scenario.
Another approach would be to limit the “fast” path to the case where the overall string length is 9 or less. That would allow overflow-free calculation without the extra bytecode weight of skipping leading zeros, possibly still with simpler code.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22919#issuecomment-2571479762
More information about the core-libs-dev
mailing list