Skip to content

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

Merged
melekes merged 2 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-2953
May 2, 2024
Merged

refactor(p2p/connection): Slight refactor to sendManyPackets that helps highlight performance improvements (backport #2953)#2977
melekes merged 2 commits intov0.38.xfrom
mergify/bp/v0.38.x/pr-2953

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented May 2, 2024

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

  • Tests written/updated - N/A, this is fully compatible so no new test updates needed
  • Changelog entry added in .changelog (we use unclog to manage our changelog) - I dont think refactors get changelogs?
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

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

…ps highlight performance improvements (#2953)

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

(cherry picked from commit 622c233)
@mergify mergify bot requested a review from a team as a code owner May 2, 2024 12:32
@melekes melekes merged commit 17074c8 into v0.38.x May 2, 2024
@melekes melekes deleted the mergify/bp/v0.38.x/pr-2953 branch May 2, 2024 13: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