<i18n dev> RFR: 8299677: Formatter.format might take a long time to format an integer or floating-point

Raffaello Giulietti rgiulietti at openjdk.org
Wed Jan 11 15:18:11 UTC 2023


On Wed, 11 Jan 2023 10:47:03 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> This change transforms a O(n^2) path to O(n) when prepending zero padding to decimal outputs, where n is the length of the padding.

Since specific tests for padding seem lacking, I'll add some as part of this PR.
Please expect another commit before marking as reviewed.

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

PR: https://git.openjdk.org/jdk/pull/11939


More information about the i18n-dev mailing list