Skip to content

lnwire+channeldb+pool: extend the reader/write buffer pools to cover channeldb+lnwire #3004

@Roasbeef

Description

@Roasbeef

Today we use a set of read/write buffer pools to reduce the amount of allocation that occurs doing routine operation. This tends us to a steady state of allocations, and reduce heap pressure as well. These buffer pool are used in the brontide package and the peer when reading/writing messages of the wire. We can also use these pools within channeldb when serializing and decoding message, and also within lnwire when decoding message. Once these two areas are covered, most allocations due to encoding/decoding will no go through these buffer pools. During the development process, we may want to re-examine the default number of workers for these buffer pools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    databaseRelated to the database/storage of LNDintermediateIssues suitable for developers moderately familiar with the codebase and LNoptimizationv0.12wire protocolEncoding of messages for the communication between nodes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions