Skip to content

perf(consensus): Make one peer state mutex call in AddVote#3156

Merged
melekes merged 2 commits intomainfrom
dev/one_ps_mtx_call
Jun 3, 2024
Merged

perf(consensus): Make one peer state mutex call in AddVote#3156
melekes merged 2 commits intomainfrom
dev/one_ps_mtx_call

Conversation

@ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented May 31, 2024

Closes #3155


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

@ValarDragon ValarDragon requested a review from a team as a code owner May 31, 2024 03:31
@ValarDragon ValarDragon requested a review from a team May 31, 2024 03:31
@ValarDragon ValarDragon changed the title Make one peer state mutex call in AddVote perf(consensus): Make one peer state mutex call in AddVote May 31, 2024
Copy link
Collaborator

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@ValarDragon
Copy link
Contributor Author

Ah correction this is in v0.37.x, and does cause some very slight overhead.

ValarDragon added a commit to osmosis-labs/cometbft that referenced this pull request May 31, 2024
@melekes melekes added backport-to-v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x and removed backport-to-v0.37.x backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x labels Jun 1, 2024
@melekes melekes added this pull request to the merge queue Jun 3, 2024
Merged via the queue into main with commit 9d7c968 Jun 3, 2024
@melekes melekes deleted the dev/one_ps_mtx_call branch June 3, 2024 08:02
ValarDragon added a commit to osmosis-labs/cometbft that referenced this pull request Jun 3, 2024
…3156)

Closes cometbft#3155

---

- [ ] 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
ValarDragon added a commit to osmosis-labs/cometbft that referenced this pull request Jun 3, 2024
perf(consensus): Make one peer state mutex call in AddVote (cometbft#3156)
mergify bot pushed a commit to osmosis-labs/cometbft that referenced this pull request Jun 3, 2024
…3156)

Closes cometbft#3155

---

- [ ] 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

(cherry picked from commit 3cdc621)
ValarDragon added a commit to osmosis-labs/cometbft that referenced this pull request Jun 3, 2024
…pr-91

perf(consensus): Make one peer state mutex call in AddVote (cometbft#3156) (backport #91)
@melekes
Copy link
Collaborator

melekes commented Jul 10, 2024

@mergify backport v1.x

@mergify
Copy link
Contributor

mergify bot commented Jul 10, 2024

backport v1.x

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Jul 10, 2024
Closes #3155

---

#### 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

(cherry picked from commit 9d7c968)

# Conflicts:
#	.changelog/unreleased/improvements/3156-make-addvote-only-take-one-ps-mtx.md
melekes added a commit that referenced this pull request Jul 10, 2024
…3156) (#3473)

Closes #3155 

---

#### 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
<hr>This is an automatic backport of pull request #3156 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>
mattac21 pushed a commit that referenced this pull request Sep 9, 2025
Closes #3155

---

- [ ] 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
mattac21 pushed a commit that referenced this pull request Sep 10, 2025
Closes #3155

---

- [ ] 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
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.

Make one peer state mutex call in AddVote

2 participants