Skip to content

perf(p2p/conn): Remove unneeded global pool buffers in secret connection (backport #3403)#3428

Merged
melekes merged 1 commit intov1.xfrom
mergify/bp/v1.x/pr-3403
Jul 5, 2024
Merged

perf(p2p/conn): Remove unneeded global pool buffers in secret connection (backport #3403)#3428
melekes merged 1 commit intov1.xfrom
mergify/bp/v1.x/pr-3403

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jul 5, 2024

Closes #3197

Remove unneeded global pool buffers in secret connection, instead just use a byte slice per secret connection, and just once for all packet sends. This is a 15% improvement to Secret connection's CPU time in Write, and 8% to read

We have much bigger system bottlenecks to fix (in the same RecvRoutine and SendRoutine calls), but this felt very low-lift, hence making the PR.


PR checklist

  • Tests written/updated - N/A
  • 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 #3403 done by [Mergify](https://mergify.com).

…ion (#3403)

Closes #3197

Remove unneeded global pool buffers in secret connection, instead just
use a byte slice per secret connection, and just once for all packet
sends. This is a 15% improvement to Secret connection's CPU time in
Write, and 8% to read

We have much bigger system bottlenecks to fix (in the same RecvRoutine
and SendRoutine calls), but this felt very low-lift, hence making the
PR.

---

#### PR checklist

- [X] Tests written/updated  - N/A
- [X] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [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

---------

Co-authored-by: Daniel <daniel.cason@informal.systems>
(cherry picked from commit d335255)
@mergify mergify bot requested a review from a team as a code owner July 5, 2024 06:34
@mergify mergify bot requested a review from a team July 5, 2024 06:34
@melekes melekes merged commit 5f63ddf into v1.x Jul 5, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-3403 branch July 5, 2024 08:30
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