-
Notifications
You must be signed in to change notification settings - Fork 18
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
Parallel gossiping #76
Conversation
CI fails for now, will work with the fix in #73 after it is reviewed and merged |
# Conflicts: # peer/gossip.go
I'm not in favour of this change. This PR spawns each call to I tested how long each gossip takes in the gossip test with and without this change, and on my laptop the times were indistinguishable. EDIT: Forgot to mention that spawning go routines for each send is probably worse on the whole because of the additional resources required for the go routines and the unnecessary extra work they give to the scheduler. |
@ross-pure this came after an issue we (I and Jaz) discussed regarding gossip timeouts. We opted for the parallel solution because if the first send call blocks (stuck in |
@rahulghangas But it looks like any potential call to |
You are right. In that case, there is indeed no need to parallelize the |
As title