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

kad: Investigate substream reuse and bound the number of open substreams #313

Open
Tracked by #307
lexnv opened this issue Dec 18, 2024 · 1 comment
Open
Tracked by #307

Comments

@lexnv
Copy link
Collaborator

lexnv commented Dec 18, 2024

Litep2p is currently creating a new substream for handling Kademlia commands.
Reutilizing a previously used substream might be beneficial from a performance standpoint.

While at it, bound the number of substreams a peer can open to a sensible number.

A few more details wrt libp2p implementation:

@dmitry-markin
Copy link
Collaborator

We should also take into account that substreams are cheaper than connections and it might be beneficial to keep the code simple if there are no indication we are hitting a bottleneck here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants