Skip to content

perf(p2p): Only update send monitor once per batch packet msg send (backport #3382)#3487

Merged
melekes merged 2 commits intov1.xfrom
mergify/bp/v1.x/pr-3382
Jul 10, 2024
Merged

perf(p2p): Only update send monitor once per batch packet msg send (backport #3382)#3487
melekes merged 2 commits intov1.xfrom
mergify/bp/v1.x/pr-3382

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jul 10, 2024

Small optimization to outbound packet gossip, I expect this to be a 1-2% speedup to outbound packet gossip as is right now. Will test on mainnet soon

This is safe as outbound packet gossip is single threaded per peer as is right now. Technically makes the send monitor marginally less real time, but this is irrelevant as the send monitor works on 20ms sliding windows anyway


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

This is an automatic backport of pull request #3382 done by [Mergify](https://mergify.com).

…3382)

Small optimization to outbound packet gossip, I expect this to be a 1-2%
speedup to outbound packet gossip as is right now. Will test on mainnet
soon

This is safe as outbound packet gossip is single threaded per peer as is
right now. Technically makes the send monitor marginally less real time,
but this is irrelevant as the send monitor works on 20ms sliding windows
anyway

---

#### PR checklist

- [ ] Tests written/updated
- [x] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec

---------

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Daniel <daniel.cason@informal.systems>
(cherry picked from commit 20d8630)
@mergify mergify bot requested a review from a team as a code owner July 10, 2024 11:49
@mergify mergify bot requested a review from a team July 10, 2024 11:49
@melekes melekes merged commit 63d437c into v1.x Jul 10, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-3382 branch July 10, 2024 12:09
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

Successfully merging this pull request may close these issues.

2 participants