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

Improve reply throughput of Swarm<T> #849

Merged
merged 2 commits into from
Apr 23, 2020

Conversation

longfin
Copy link
Member

@longfin longfin commented Apr 22, 2020

This PR improves response throughput of Swarm<T> by arranging the timing of .ToNetMQMessage(). Moving it to the outside of DoReply() can help with its concurrency.

@longfin longfin self-assigned this Apr 22, 2020
Move NetMQMessage translation to the outside of replying callback
@longfin longfin force-pushed the feature/reply-throughput branch from 338206d to 6e77299 Compare April 22, 2020 14:21
@longfin longfin changed the title Feature/reply throughput Improve reply throughput of Swarm<T> Apr 22, 2020
@longfin longfin requested review from dahlia, moreal and earlbread April 22, 2020 14:23
@longfin longfin added the network Related to networking (Libplanet.Net) label Apr 22, 2020
@longfin longfin marked this pull request as ready for review April 22, 2020 14:23
@codecov
Copy link

codecov bot commented Apr 22, 2020

Codecov Report

Merging #849 into master will increase coverage by 0.03%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master     #849      +/-   ##
==========================================
+ Coverage   87.47%   87.51%   +0.03%     
==========================================
  Files         249      249              
  Lines       22620    22619       -1     
==========================================
+ Hits        19787    19795       +8     
+ Misses       1488     1478      -10     
- Partials     1345     1346       +1     
Impacted Files Coverage Δ
Libplanet/Net/NetMQTransport.cs 84.18% <93.75%> (-0.03%) ⬇️
Libplanet.Tests/Net/Protocols/TestTransport.cs 76.68% <0.00%> (-0.62%) ⬇️
Libplanet/Net/Protocols/KademliaProtocol.cs 65.01% <0.00%> (+0.38%) ⬆️
Libplanet/Net/Swarm.cs 84.99% <0.00%> (+0.38%) ⬆️
Libplanet/Net/Protocols/KBucket.cs 88.13% <0.00%> (+2.54%) ⬆️

@longfin longfin merged commit 5a2b7cf into planetarium:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Related to networking (Libplanet.Net)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants