PrimeOrderCalculator.PartiaFactorCpu optimized to use one-time allocation list and stack.
This commit is contained in:
1 parent
9fcd21b734
commit
a185149eba
3 files changed
+7
-12
No files matched your search
@@ -2,7 +2,7 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
namespace PerfectNumbers.Core;
|
||||
|
||||
internal sealed class PartialFactorPendingEntry(ulong value, bool knownComposite)
|
||||
public sealed class PartialFactorPendingEntry(ulong value, bool knownComposite)
|
||||
{
|
||||
[ThreadStatic]
|
||||
private static PartialFactorPendingEntry? _poolHead;
|
||||
|
||||
Reference in new issue
Block a user