On Fri, 26 Jul 2024 14:20:07 GMT, Shaojin Wen <d...@openjdk.org> wrote:
> By removing the redundant code logic in > DateTimeFormatterBuilder$InstantPrinterParser#formatTo, the codeSize can be > reduced and the performance can be improved. By removing redundant code logic, the codeSize can be reduced from 444 to 240, and the performance is improved. Below are the performance numbers running on MacBook M1 Pro -# master 5ff7c57f9ff5428ef3d2aedd7e860bb1e8ff29ea -Benchmark Mode Cnt Score Error Units -ToStringBench.instantToString thrpt 15 4.734 ? 0.547 ops/ms +24.10% +# current baf0f9ca83c111401d6e034dfba0ee2c71280e62 +Benchmark Mode Cnt Score Error Units +ToStringBench.instantToString thrpt 15 5.875 ? 0.301 ops/ms ------------- PR Comment: https://git.openjdk.org/jdk/pull/20353#issuecomment-2252885851