mirror of
https://github.com/wownero/wownero.git
synced 2026-11-21 16:14:12 +01:00
lmdb: refine batch size estimation
This commit is contained in:
@@ -737,7 +737,7 @@ estim:
|
|||||||
MDEBUG("estimated average block size for batch: " << avg_block_size);
|
MDEBUG("estimated average block size for batch: " << avg_block_size);
|
||||||
|
|
||||||
// bigger safety margin on smaller block sizes
|
// bigger safety margin on smaller block sizes
|
||||||
if (batch_fudge_factor < 5000.0)
|
if (!batch_bytes && batch_fudge_factor < 5000.0)
|
||||||
batch_fudge_factor = 5000.0;
|
batch_fudge_factor = 5000.0;
|
||||||
threshold_size = avg_block_size * db_expand_factor * batch_fudge_factor;
|
threshold_size = avg_block_size * db_expand_factor * batch_fudge_factor;
|
||||||
return threshold_size;
|
return threshold_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user