-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipe filesystem writes in
lightning-persister
through BufWriter
We generally make no effort to ensure all writes are buffered in lower-level objects, so wrapping write calls in `BufWriter` may substantially improve performance in some cases. This is especially important now that we block the sample node exit until the `NetworkGraph` has been written out, which includes many small-ish writes. With this change, shutdown of the sample node on a relatively underpowered device went from 15-30 seconds of CPU time to a second or two, plus IO sync time.
- Loading branch information
1 parent
af31831
commit 7e93fdb
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters