RFR: JDK-8277175 : Add a parallel multiply method to BigInteger
kabutz
duke at openjdk.java.net
Tue Nov 16 21:22:39 UTC 2021
On Tue, 16 Nov 2021 20:45:05 GMT, Simon Roberts <simon at dancingcloudservices.com> wrote:
> Is there not also an architectural consideration here? I'm inclined to think that just because execution in parallel finishes in less wall time does not mean that's the right thing to do. Those CPUs will be unavailable for other work, and in any multi-user/client type system, that effectively makes life worse for the others, doesn't it?
Exactly, which is why we would need a kill-switch (or an on-switch) if we don't have a public parallelMultiply() method. It would then be either on or off for _all_ multiplies, albeit only for large numbers.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6409
More information about the core-libs-dev
mailing list