BitContradiction improvements.

This commit is contained in:
Marek Lemańczyk committed 2026-02-10 11:52:26 +01:00
1 parent b453d46c5f
commit 22cc8f368f
7 files changed
+5299 -4230

No files matched your search

@@ -68,12 +68,15 @@ public sealed class KStateRepository : IDisposable
session.Upsert(keyString, valueString);
session.CompletePending(true);
var flushCount = ++_flushCount;
if (flushCount >= PerfectNumberConstants.ByDivisorStateSaveInterval)
if (flushCount >= PerfectNumberConstants.ByDivisorFlushAndEvictInterval)
{
_flushCount = 0;
_store.Log.FlushAndEvict(wait: true);
}
else
{
_store.Log.Flush(wait: false);
}
}
public bool TryGet(ulong prime, out BigInteger value)