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

refactor(p2p/connection): Slight refactor to sendManyPackets that helps highlight performance improvements (backport #2953) (#2978) #61

Merged
merged 1 commit into from
May 22, 2024

Conversation

ValarDragon
Copy link
Member

Fully compatible refactor to the sendSomePacketMsgs loop, that I think makes it easier to:

  1. Understand the code
  2. See how we improve it for serial time performance 3) Puts my notes for how to improve some consensus gossip bottlenecks.

PR checklist


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

…ps highlight performance improvements (backport cometbft#2953) (cometbft#2978)

Fully compatible refactor to the `sendSomePacketMsgs` loop, that I think
makes it easier to:
1) Understand the code
2) See how we improve it for serial time performance
3) Puts my notes for how to improve some consensus gossip bottlenecks.

---

#### PR checklist

- [x] Tests written/updated - N/A, this is fully compatible so no new
test updates needed
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog) - I dont think refactors get changelogs?
- [x] Updated relevant documentation (`docs/` or `spec/`) and code
comments
- [x] Title follows the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
<hr>This is an automatic backport of pull request cometbft#2953 done by
[Mergify](https://mergify.com).

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 18, 2024
@PaddyMc PaddyMc removed the Stale label May 21, 2024
Copy link
Collaborator

@PaddyMc PaddyMc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gg

@PaddyMc PaddyMc added the S:backport/v25 backport to the osmo-v25/v0.37.4 branch label May 22, 2024
@PaddyMc PaddyMc merged commit 6d0070e into osmo/v0.37.4 May 22, 2024
17 of 18 checks passed
mergify bot pushed a commit that referenced this pull request May 22, 2024
…ps highlight performance improvements (backport cometbft#2953) (cometbft#2978) (#61)

* refactor(p2p/connection): Slight refactor to sendManyPackets that helps highlight performance improvements (cometbft#2978) (#61)

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
(cherry picked from commit 6d0070e)
PaddyMc pushed a commit that referenced this pull request May 23, 2024
…ps highlight performance improvements (backport cometbft#2953) (cometbft#2978) (#61) (#65)

* refactor(p2p/connection): Slight refactor to sendManyPackets that helps highlight performance improvements (cometbft#2978) (#61)

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
(cherry picked from commit 6d0070e)

Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:backport/v25 backport to the osmo-v25/v0.37.4 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants