Simplify scheduler configuration and pending composite caching

This commit is contained in:
Marek Lemańczyk committed 2025-10-20 01:07:02 +02:00
1 parent e9cff7bfcd
commit a7ed762428
3 files changed
+23 -48

No files matched your search

@@ -858,13 +858,13 @@ internal static partial class PrimeOrderCalculator
if (currentTimestamp > deadlineTimestamp)
{
pollardRhoDeadlineReached = true;
pending.Add(new PendingEntry(composite, knownComposite: false).WithPrimality(false));
pending.Add(new PendingEntry(composite, knownComposite: true));
continue;
}
if (!TryPollardRho(composite, deadlineTimestamp, out ulong factor))
{
pending.Add(new PendingEntry(composite, knownComposite: false).WithPrimality(false));
pending.Add(new PendingEntry(composite, knownComposite: true));
continue;
}