RFR: 8300818: Reduce complexity of padding with DateTimeFormatter [v2]
Sergey Tsypanov
stsypanov at openjdk.org
Sun Apr 16 11:47:34 UTC 2023
On Wed, 12 Apr 2023 17:41:58 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Added benchmark for this
>
> Special casing for len == 0 and keeping the existing buf.insert for len == 1 would avoid object creation except when it would improve performance.
@RogerRiggs sorry I don't get it. Maybe you mean speacial casing for `padWidth - len`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/12131#discussion_r1167869599
More information about the core-libs-dev
mailing list