Small optimizations and more TODOs added.

This commit is contained in:
Marek Lemańczyk committed 2025-09-25 05:49:32 +02:00
1 parent 49fcd93747
commit 34681b9738
2 files changed
+13 -23

No files matched your search

+1 -2
View File
@@ -918,8 +918,7 @@ internal static class Program
cycleValues = cycleLease.Values ?? throw new InvalidOperationException("Divisor cycle cache returned no values for acquired lease.");
}
ulong offset = divisor - cycleLeaseStart;
divisorCycle = offset < (ulong)cycleValues.Length ? cycleValues[(int)offset] : cycleLease.GetCycle(divisor);
divisorCycle = cycleValues[(int)(divisor - cycleLeaseStart)];
}
else
{