BitContradiction improvements.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user