Skip to content

perf(p2p/conn): Use a read buffer on the secret connection (backport #3419)#3489

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

perf(p2p/conn): Use a read buffer on the secret connection (backport #3419)#3489
melekes merged 3 commits intov1.xfrom
mergify/bp/v1.x/pr-3419

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jul 10, 2024

Closes #3198

Similar to #3346 , buffers the secret connection reads. This is a notable savings to CPU time. (25% of recvRoutine time, on Osmosis' version)


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 #3419 done by [Mergify](https://mergify.com).

Closes #3198

Similar to #3346 , buffers the secret connection reads. This is a
notable savings to CPU time. (25% of recvRoutine time, on Osmosis'
version)

---

#### PR checklist

- [ ] Tests written/updated
- [ ] 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>
(cherry picked from commit e1eabe0)

# Conflicts:
#	p2p/conn/evil_secret_connection_test.go
@mergify mergify bot requested a review from a team as a code owner July 10, 2024 12:10
@mergify mergify bot added the conflicts label Jul 10, 2024
@mergify mergify bot requested a review from a team July 10, 2024 12:10
@mergify

This comment was marked as resolved.

@melekes melekes merged commit f0b8902 into v1.x Jul 10, 2024
@melekes melekes deleted the mergify/bp/v1.x/pr-3419 branch July 10, 2024 12:41
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