Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Increase channel buffer size from network worker to node tasks #6009

@tomaka

Description

@tomaka

Right now the buffer size is 5 elements. In other words, the worker can send 5 elements to a libp2p tasks, after which it has to go to sleep waiting for the libp2p task to make some space in that queue.

In practice, however, grandpa seems to sometimes send bursts of hundreds of messages, and it probably wouldn't hurt to increase this buffer size to a bit more than 5.

This requires changes in libp2p to make this buffer size configurable, but I'm opening it here to not forget to update Substrate later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I9-optimisationAn enhancement to provide better overall performance in terms of time-to-completion for a task.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions