Merge pull request #8839

24d56c5 bump lmdb sync threshold for performance (moneromooo-monero)
This commit is contained in:
luigi1111 2023-06-27 11:36:29 -05:00
commit 1df7260bd3
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 4 additions and 0 deletions

View File

@ -576,7 +576,11 @@ namespace cryptonote
else if(options[0] == "fastest")
{
db_flags = DBF_FASTEST;
#ifdef _WIN32
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;
}
else