v3.0: ConsumeWorker: improve bank check/switch efficiency (backport of #8291)#8315
v3.0: ConsumeWorker: improve bank check/switch efficiency (backport of #8291)#8315mergify[bot] wants to merge 2 commits intov3.0from
Conversation
(cherry picked from commit a58c605) # Conflicts: # core/src/replay_stage.rs
|
Cherry-pick of a58c605 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
this needs to ride 3.1 |
f13a03a to
7d0a48e
Compare
@t-nelson git freaked tf out due to a name change of a fn that was used in replay_stage in 3.1 but not in 3.0. This is fixing a bug that was causing us to load/clone arc-bank twice per batch in block-production in 3.0+. If you still think not worth risk lmk it's unlikely to make a huge impact on perf with current levels of traffic, but seems like a simple fix to me. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v3.0 #8315 +/- ##
=======================================
Coverage 83.4% 83.5%
=======================================
Files 810 810
Lines 365809 365827 +18
=======================================
+ Hits 305445 305478 +33
+ Misses 60364 60349 -15 🚀 New features to boost your workflow:
|
|
well there are no tests either |
|
i think we only want the bank update logic inversion fix backported. can you take this back to master and put that in separately. other stuff can ride master |
I think without the other changes, just reversing the condition is not very useful. I'm actually fine to just let this ride to master - I hadn't seen this popping up on profiles yet anyway |
Problem
Arc::ptr_eqthat needs to be fixedSummary of Changes
Arc::cloneon actual bank switch.Fixes #
This is an automatic backport of pull request #8291 done by [Mergify](https://mergify.com).