<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 10:55:00 UTC 2023


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.

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

Commit messages:
 - 8299677: Formatter.format might take a long time to format an integer or floating-point

Changes: https://git.openjdk.org/jdk/pull/11939/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11939&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8299677
  Stats: 5 lines in 1 file changed: 0 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/11939.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11939/head:pull/11939

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


More information about the i18n-dev mailing list