RFR: 8337167: StringSize deduplication [v2]

Roger Riggs rriggs at openjdk.org
Thu Jul 25 14:51:37 UTC 2024


On Thu, 25 Jul 2024 14:29:05 GMT, Shaojin Wen <duke at openjdk.org> wrote:

>> Integer.stringSize and Long.stringSize are used not only in java.lang, but also in other places. We put stringSize in DecimalDigits to reduce duplicate code and the use of JLA.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove unused Integer.stringSize & Long.stringSize

What is the performance difference between the long and int versions?
If it is negligible, keep only the long version.

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

PR Comment: https://git.openjdk.org/jdk/pull/20322#issuecomment-2250535851


More information about the core-libs-dev mailing list