Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipe filesystem writes in lightning-persister through BufWriter #1404

Merged
merged 1 commit into from
Apr 15, 2022

Commits on Apr 3, 2022

  1. 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.
    TheBlueMatt committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    7e93fdb View commit details
    Browse the repository at this point in the history