mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
bump lmdb sync threshold for performance
Force sync every 100k blocks instead of every 1k blocks. Bumping this value is reported to make a big difference in sync performance, eg: https://github.com/monero-project/monero/issues/8189
This commit is contained in:
parent
a2e8d1d427
commit
24d56c5975
1 changed files with 4 additions and 0 deletions
|
@ -576,7 +576,11 @@ namespace cryptonote
|
||||||
else if(options[0] == "fastest")
|
else if(options[0] == "fastest")
|
||||||
{
|
{
|
||||||
db_flags = DBF_FASTEST;
|
db_flags = DBF_FASTEST;
|
||||||
|
#ifdef _WIN32
|
||||||
sync_threshold = 1000; // default to fastest:async:1000
|
sync_threshold = 1000; // default to fastest:async:1000
|
||||||
|
#else
|
||||||
|
sync_threshold = 100000; // default to fastest:async:100000
|
||||||
|
#endif
|
||||||
sync_mode = db_sync_mode_is_default ? db_defaultsync : db_async;
|
sync_mode = db_sync_mode_is_default ? db_defaultsync : db_async;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue