Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4a8181b

Browse files
committed
Merge pull request #2430 from axelheer/biginteger-allocations
Reduce allocation threshold of BigIntegerCalculator
2 parents 30fe2ba + 5394daf commit 4a8181b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.SquMul.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public unsafe static uint[] Square(uint[] value)
2626

2727
// Mutable for unit testing...
2828
private static int SquareThreshold = 32;
29-
private static int AllocationThreshold = 4096;
29+
private static int AllocationThreshold = 256;
3030

3131
[SecuritySafeCritical]
3232
private unsafe static void Square(uint* value, int valueLength,

0 commit comments

Comments
 (0)