The performance of Karatsuba multiplication may suffer from high allocation pressure under saturated threading. The current implementation allocates approximately 15 BigIntegers per recursion level (30 objects, 15 wrappers + 15 int[]).
- relates to
-
JDK-4837946 Faster multiplication and exponentiation of large integers
-
- Closed
-