This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Increase channel buffer size from network worker to node tasks #6009
Labels
I9-optimisation
An enhancement to provide better overall performance in terms of time-to-completion for a task.
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.
The text was updated successfully, but these errors were encountered: