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

optimizing lightpush send time using optimistic stream creation #1496

Closed
1 task done
Tracked by #1465 ...
danisharora099 opened this issue Aug 22, 2023 · 1 comment
Closed
1 task done
Tracked by #1465 ...
Assignees

Comments

@danisharora099
Copy link
Collaborator

danisharora099 commented Aug 22, 2023

This is a feature request

Problem

reference to #1465 (comment), we currently create streams with remote peers for a protocol lazily. ie, when lightpush.send() is called, a stream is created then - thus adding to the time delays for the send() function.

Proposed Solutions

  • optimistically open streams with peers
    • instead of opening a stream during the sending of message, open one beforehand
    • create a small pool of streams
    • refill the pool as soon as we use up a stream

Notes

Once the above is done, look into work for reducing time taken by pipe()

@danisharora099
Copy link
Collaborator Author

Done with #1516

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

No branches or pull requests

1 participant