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

Commit 5394daf

Browse files
committed
Reduce allocation threshold of BigIntegerCalculator
The aftermath of #2291 leads to the final conclusion that this is the better value. A bigger threshold doesn't have a noticeable effect.
1 parent fee1721 commit 5394daf

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)