<i18n dev> RFR: 8333396: Performance regression of DecimalFormat.format [v8]
Justin Lu
jlu at openjdk.org
Thu Jun 20 21:56:13 UTC 2024
On Wed, 19 Jun 2024 02:05:28 GMT, lingjun-cg <duke at openjdk.org> wrote:
> It requires append(int), but the Appendable has no such method.
If via `Appendable` we don't have access to `append(int)`, can we simply `append(String.valueOf(int))`.
And similarly for `append(char[], int, int)`, can we `append(String.valueOf(char[], int, int))`.
According to the method descriptions in `AbstractStringBuilder`, this should behaviorally be the same.
That way we don't have to add any new classes, and can continue with the generic implementation.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19513#issuecomment-2181620101
More information about the i18n-dev
mailing list