Re: RFR: 8337832: Optimize datetime toString

2024-08-27 Thread duke
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. @wenshao Your change (at version 9d7cc54c449d4e12d0eb30c103e8aa3aaf206b6d) is now ready to be s

Re: RFR: 8337832: Optimize datetime toString

2024-08-27 Thread Naoto Sato
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. LGTM. Thanks for the changes. - Marked as reviewed by naoto (Reviewer). PR Review:

Re: RFR: 8337832: Optimize datetime toString

2024-08-25 Thread Chen Liang
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. Since I am not responsible for the date time area, I would prefer @naotoj who's more familiar to

Re: RFR: 8337832: Optimize datetime toString

2024-08-11 Thread Shaojin Wen
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. Below are the performance numbers on the MacBook M1 Pro. In the zonedDateTimeToString scenario,

Re: RFR: 8337832: Optimize datetime toString

2024-08-11 Thread Stephen Colebourne
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. Change looks fine, but is it actually faster? - Marked as reviewed by scolebourne (

RFR: 8337832: Optimize datetime toString

2024-08-05 Thread Shaojin Wen
Similar to PR #20321, this improves performance by providing a method that passes in a StringBuilder to avoid unnecessary object allocation. - Commit messages: - copyright - use var - Update src/java.base/share/classes/java/time/ZonedDateTime.java - refactor datetime to string C

Re: RFR: 8337832: Optimize datetime toString

2024-08-05 Thread Chen Liang
On Sat, 27 Jul 2024 13:45:11 GMT, Shaojin Wen wrote: > Similar to PR #20321, this improves performance by providing a method that > passes in a StringBuilder to avoid unnecessary object allocation. src/java.base/share/classes/java/time/ZonedDateTime.java line : > 2220: if (offset !