RFR: JDK-8277175 : Add a parallel multiply method to BigInteger [v2]

Brian Burkhalter brian.burkhalter at oracle.com
Wed Nov 17 19:17:44 UTC 2021


On Nov 17, 2021, at 11:14 AM, Paul Sandoz <psandoz at openjdk.java.net<mailto:psandoz at openjdk.java.net>> wrote:

Would adding a parameter in the nature of `maxProcessors` make any sense?

Kind of but i would recommend not doing it. That's hard to express in a manner that developers will choose appropriate values across all deployments. This is why you don't see such configuration for parallel streams or the parallel array operations.[…]

Thanks for the background.

—
[…] I think it would be useful to get a sense of whether the recursion goes beyond some proportion of # runtime processors after which there is likely no point in creating more recursive tasks e.g. from the size in bits of the inputs can we determine a useful approximate threshold?

That sounds like a good idea.


More information about the core-libs-dev mailing list