Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v5]

2023-10-23 Thread Joe Darcy
> Add informative notes to BigInteger and BigDecimal about possible running > times, etc. Joe Darcy has updated the pull request incrementally with two additional commits since the last revision: - Re-flow paragraph. - Fix a typo. - Changes: - all: https://git.openjdk.org/jdk/

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-23 Thread Joseph D. Darcy
Hi Hans, Giving some additional context, we'll occasionally get bug reports that amount to an observation equivalent to the following: "I have two Big{Foo} variables and in a loop I assign larger and larger values to them. As the values get large, bigFoo1.add(bigFoo2) runs much faster than b

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-23 Thread Brian Burkhalter
On Mon, 23 Oct 2023 20:26:00 GMT, Joe Darcy wrote: >> src/java.base/share/classes/java/math/BigDecimal.java line 302: >> >>> 300: * scale. For example, an {@linkplain BigDecimal#multiply(BigDecimal) >>> 301: * exact multiply} of two {@code BigDecimal} values is subject to the >>> 302: * same

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v4]

2023-10-23 Thread Brian Burkhalter
On Mon, 23 Oct 2023 20:47:42 GMT, Joe Darcy wrote: >> Add informative notes to BigInteger and BigDecimal about possible running >> times, etc. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Respond to review feedback, fix ty

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v4]

2023-10-23 Thread Joe Darcy
> Add informative notes to BigInteger and BigDecimal about possible running > times, etc. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Respond to review feedback, fix typos. - Changes: - all: https://git.openjdk.org/j

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-23 Thread Joe Darcy
On Mon, 23 Oct 2023 20:07:07 GMT, Brian Burkhalter wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix typo. > > src/java.base/share/classes/java/math/BigInteger.java line 137: > >> 135: * results indicate a multipl

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-23 Thread Joe Darcy
On Mon, 23 Oct 2023 20:05:50 GMT, Brian Burkhalter wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix typo. > > src/java.base/share/classes/java/math/BigDecimal.java line 302: > >> 300: * scale. For example, an {@l

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-23 Thread Brian Burkhalter
On Mon, 23 Oct 2023 03:50:50 GMT, Joe Darcy wrote: >> Add informative notes to BigInteger and BigDecimal about possible running >> times, etc. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Fix typo. src/java.base/share/cla

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-23 Thread Hans Boehm
Since I think this is about asymptotic complexity, which is determined by behavior on large inputs, is there a reason to talk about switching to other algorithms on smaller inputs? We certainly don't want to get into the habit of listing "easy case" optimizations everywhere. I'm unclear about the

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-23 Thread Brian Burkhalter
On Mon, 23 Oct 2023 03:50:50 GMT, Joe Darcy wrote: >> Add informative notes to BigInteger and BigDecimal about possible running >> times, etc. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Fix typo. I suggest taking a look

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v2]

2023-10-23 Thread Raffaello Giulietti
On Mon, 23 Oct 2023 03:46:54 GMT, Joe Darcy wrote: >> Add informative notes to BigInteger and BigDecimal about possible running >> times, etc. > > Joe Darcy has updated the pull request incrementally with one additional > commit since the last revision: > > Respond to review feedback. src/j

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v2]

2023-10-23 Thread Raffaello Giulietti
On Mon, 23 Oct 2023 09:55:16 GMT, Raffaello Giulietti wrote: >> Joe Darcy has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Respond to review feedback. > > src/java.base/share/classes/java/math/BigInteger.java line 127: > >> 125: * the

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v3]

2023-10-22 Thread Joe Darcy
> Add informative notes to BigInteger and BigDecimal about possible running > times, etc. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Fix typo. - Changes: - all: https://git.openjdk.org/jdk/pull/16298/files - new:

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal [v2]

2023-10-22 Thread Joe Darcy
> Add informative notes to BigInteger and BigDecimal about possible running > times, etc. Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Respond to review feedback. - Changes: - all: https://git.openjdk.org/jdk/pull/162

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-22 Thread Joe Darcy
On Sun, 22 Oct 2023 11:22:27 GMT, Raffaello Giulietti wrote: >> Add informative notes to BigInteger and BigDecimal about possible running >> times, etc. > > src/java.base/share/classes/java/math/BigInteger.java line 152: > >> 150: * time of operations can screen out {@code BigInteger} values

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-22 Thread Raffaello Giulietti
On Sat, 21 Oct 2023 00:56:21 GMT, Joe Darcy wrote: > Add informative notes to BigInteger and BigDecimal about possible running > times, etc. src/java.base/share/classes/java/math/BigDecimal.java line 310: > 308: * time of operations can screen out {@code BigDecimal} values with > 309: * unsc

Re: RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-21 Thread Alan Bateman
On Sat, 21 Oct 2023 00:56:21 GMT, Joe Darcy wrote: > Add informative notes to BigInteger and BigDecimal about possible running > times, etc. The wording looks okay to me and I expect it will appear as an API note in BigInteger. However, for BigDecimal I suspect the h2 headings (for the next h

RFR: JDK-8318476: Add resource consumption note to BigInteger and BigDecimal

2023-10-20 Thread Joe Darcy
Add informative notes to BigInteger and BigDecimal about possible running times, etc. - Commit messages: - Appease jcheck. - JDK-8318476: Add resource consumption note to BigInteger and BigDecimal Changes: https://git.openjdk.org/jdk/pull/16298/files Webrev: https://webrevs.openj