Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: speedup pbss trienode read #122

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

will-2012
Copy link
Contributor

@will-2012 will-2012 commented Jun 19, 2024

Description

Cherry-pick from bsc, bnb-chain/bsc#2508.

Rationale

Refer to cherry-pick PR.

Example

N/A.

Changes

Notable changes:

  • Pbss difflayer: add hash cache.
  • Pbss disklayer: adjust clean cache size.

@will-2012 will-2012 marked this pull request as draft June 19, 2024 09:45
@will-2012 will-2012 added the wip work in process label Jun 19, 2024
@will-2012 will-2012 changed the title perf: speedup pbss trienode read (#2508) perf: speedup pbss trienode read Jun 19, 2024
@will-2012 will-2012 force-pushed the add-pbss-cache branch 2 times, most recently from c7849cc to cc484b6 Compare June 19, 2024 14:44
@will-2012 will-2012 added R4R Ready for review and removed wip work in process labels Jun 20, 2024
Copy link
Contributor

@krish-nr krish-nr left a comment

Choose a reason for hiding this comment

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

LGTM
After discussing with the author, this optimized PR was picked from BSC and includes additional logic from OP, but it does not affect the main process. The intention is to flatten the 128-layer diff layer query into a k-v cache to reduce memory read times.

@will-2012 will-2012 marked this pull request as ready for review July 2, 2024 02:16
@github-actions github-actions bot requested review from bnoieh and redhdx July 2, 2024 02:16
@owen-reorg owen-reorg merged commit 685031a into bnb-chain:develop Jul 4, 2024
2 checks passed
andyzhang2023 pushed a commit that referenced this pull request Aug 9, 2024
Co-authored-by: will@2012 <xibaow2020@qq.com>
andyzhang2023 pushed a commit to andyzhang2023/op-geth that referenced this pull request Sep 11, 2024
Co-authored-by: will@2012 <xibaow2020@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R4R Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants