Skip to content

v1.18: banking_stage: track VoteStorage size instead of costly iterator (backport of #743)#755

Closed
mergify[bot] wants to merge 1 commit intov1.18from
mergify/bp/v1.18/pr-743
Closed

v1.18: banking_stage: track VoteStorage size instead of costly iterator (backport of #743)#755
mergify[bot] wants to merge 1 commit intov1.18from
mergify/bp/v1.18/pr-743

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify Bot commented Apr 11, 2024

LatestUnprocessedVotes uses a costly lock grabbing iterator to compute length, which is used in various parts of the banking stage.
Instead track this separately in an atomic


This is an automatic backport of pull request #743 done by Mergify.

* banking_stage: track VoteStorage size instead of costly iterator

* missed one

---------

Co-authored-by: steviez <steven@anza.xyz>
(cherry picked from commit 4fc6b0b)
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.5%. Comparing base (7b8ed3b) to head (7480c8d).
Report is 2 commits behind head on v1.18.

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.18     #755     +/-   ##
=========================================
- Coverage    81.5%    81.5%   -0.1%     
=========================================
  Files         827      827             
  Lines      224833   224859     +26     
=========================================
- Hits       183453   183448      -5     
- Misses      41380    41411     +31     

@t-nelson
Copy link
Copy Markdown

pls hold this one

@alessandrod
Copy link
Copy Markdown

I support backporting this to 1.18 - with the caveat that I haven't reviewed the master PR and would like to take a look at this next week.

@t-nelson
Copy link
Copy Markdown

do we want to resurrect bp consideration here?

@apfitzge
Copy link
Copy Markdown

Stated on another PR: #1762 (comment)

If this PR is merged, we should also merge #1838 which fixes a race condition that was introduced with the change in #743

@willhickey
Copy link
Copy Markdown

Closing this as stale. If you think this is relevant please re-open and let @anza-xyz/backport-reviewers know why it is important

@willhickey willhickey closed this Sep 4, 2024
@mergify mergify Bot deleted the mergify/bp/v1.18/pr-743 branch September 4, 2024 16:22
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.

6 participants