Small optimizations and more TODOs added.
This commit is contained in:
1 parent
49fcd93747
commit
34681b9738
2 files changed
+13
-23
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user