Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-26 Thread Shaojin Wen
On Wed, 26 Jun 2024 11:30:25 GMT, Raffaello Giulietti wrote: >> All suggestions have been fixed, can this PR be integrated? @cl4es @liach > > @wenshao Looks good, thanks for the improvements. > > Let me know when you are finished with your changes. > Once approved, you should refrain from addi

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-26 Thread Raffaello Giulietti
On Tue, 25 Jun 2024 01:58:29 GMT, Shaojin Wen wrote: >> Just suggesting some improvements > > All suggestions have been fixed, can this PR be integrated? @cl4es @liach @wenshao Looks good, thanks for the improvements. Let me know when you are finished with your changes. Once approved, you shou

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-24 Thread Shaojin Wen
On Sun, 16 Jun 2024 21:25:42 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code format > > Just suggesting some improvements All suggestions have been fixed, can this PR be integrated? @cl4es

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-21 Thread Shaojin Wen
On Sun, 16 Jun 2024 21:00:41 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code format > > src/java.base/share/classes/jdk/internal/math/ToDecimal.java line 171: > >> 169: /* Using the dep

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-16 Thread Shaojin Wen
On Sun, 16 Jun 2024 23:49:18 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/jdk/internal/math/ToDecimal.java line 169: >> >>> 167: } >>> 168: >>> 169: /* Using the deprecated constructor enhances performance */ >> >> Enhances performance over what, `new String(str, 0, index, >

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-16 Thread Shaojin Wen
On Sun, 16 Jun 2024 21:02:09 GMT, Claes Redestad wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> code format > > src/java.base/share/classes/jdk/internal/math/ToDecimal.java line 169: > >> 167: } >> 168: >> 16

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-16 Thread Claes Redestad
On Sat, 15 Jun 2024 13:27:41 GMT, Shaojin Wen wrote: >> The current versions of FloatToDecimal and DoubleToDecimal allocate >> additional objects. Reducing these allocations can improve the performance >> of Float/Double.toString and AbstractStringBuilder's append(float/double). >> >> This pat

Re: RFR: 8334328: Reduce object allocation for FloatToDecimal and DoubleToDecimal [v8]

2024-06-15 Thread Shaojin Wen
> The current versions of FloatToDecimal and DoubleToDecimal allocate > additional objects. Reducing these allocations can improve the performance of > Float/Double.toString and AbstractStringBuilder's append(float/double). > > This patch is just a code refactoring to reduce object allocation, b