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
@@ -9,6 +9,8 @@ namespace PerfectNumbers.Core
|
||||
|
||||
public readonly ulong[] Factors = new ulong[PrimeOrderConstants.GpuSmallPrimeFactorSlots];
|
||||
public readonly int[] Exponents = new int[PrimeOrderConstants.GpuSmallPrimeFactorSlots];
|
||||
public readonly FixedCapacityStack<ulong> CompositeStack = new (PrimeOrderConstants.GpuSmallPrimeFactorSlots);
|
||||
public readonly List<PartialFactorPendingEntry> PendingFactors = new (PrimeOrderConstants.GpuSmallPrimeFactorSlots);
|
||||
private PartialFactorResult? _next;
|
||||
public ulong Cofactor;
|
||||
public bool FullyFactored;
|
||||
|
||||
Reference in new issue
Block a user