mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 20:08:27 +00:00
f78133b8e9
This reduces the size of our write batches before we flush them. This has two effects: reducing the amount of data lost if we crash when updating the database, and reducing the amount of memory used when we do large updates without checkpoint (e.g., deleting a folder). I ran our SyncManyFiles benchmark as it is the one doing most transactions, however there was no relevant change in any metric (it's limited by our fsync I expect). This is good as any visible change would just be a decrease in performance. I don't have a benchmark on deleting a large folder, taking that part on trust for now...