8000 perf(p2p): Only update send monitor once per batch packet msg send (backport #3382) by mergify[bot] · Pull Request #3417 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

mergify[bot]
Copy link
Contributor
@mergify mergify bot commented Jul 3, 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)

# Conflicts:
#	.changelog/v0.38.8/improvements/3382-single-send-monitor-per-packet.md
@mergify mergify bot requested a review from a team as a code owner July 3, 2024 22:47

This comment was marked as resolved.

@mergify mergify bot added the conflicts label Jul 3, 2024
@melekes melekes merged commit 4e85725 into v0.38.x Jul 5, 2024
21 checks passed
@melekes melekes deleted the mergify/bp/v0.38.x/pr-3382 branch July 5, 2024 07:28
@sergio-mena
Copy link
Contributor

@melekes there was a problem with this backport PR: the changelog landed on .changelog/v0.38.8/improvements/, rather than .changelog/unreleased/improvements/.

As a result, this is announced as part of v0.38.8, whilst it should be part of v0.38.10. I'll open a PR to fix it.

@sergio-mena
Copy link
Contributor

Oh... I see you fixed it when preparing v0.38.10! Thanks a lot for that and sorry for the noise. All good 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

Successfully merging this pull request may close these issues.

3 participants
0