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

fix: performance issue when load journal #2438

Merged
merged 3 commits into from
May 8, 2024

Conversation

jingjunLi
Copy link
Contributor

@jingjunLi jingjunLi commented May 8, 2024

Description

The load journal function reads the TrieJournal from the database multiple times, which consumes a considerable amount of time. To optimize this, we only need to read the TrieJournal once and save the result into the database.

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

fix: performance test
@jingjunLi jingjunLi changed the title fix: performance test fix: performance issue when load journal May 8, 2024
@jingjunLi jingjunLi requested review from fynnss and RenRick May 8, 2024 03:19
triedb/pathdb/database.go Outdated Show resolved Hide resolved
triedb/pathdb/database.go Outdated Show resolved Hide resolved
Copy link
Contributor

@fynnss fynnss left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@RenRick RenRick left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@sysvm sysvm left a comment

Choose a reason for hiding this comment

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

LGTM

@zzzckck zzzckck merged commit 901ea2e into bnb-chain:develop May 8, 2024
6 of 7 checks passed
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.

5 participants