mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-23 07:08:24 +00:00
4beef5cc66
This reverts the GC behavior to the Go default of triggering GC when the heap has grown 100% compared to after the previous GC. We were setting this to 25% to keep memory usage at a minimum, but it has a pretty severe performance cost (especially when syncing large files) as we keep triggering GC too often. This documents the tweak in the `-help` message so users can decide for themselves, and sticks to whatever the Go runtime developers thinks is best for the default.