Skip to content

fix: performance issue when load journal#2438

Merged
zzzckck merged 3 commits intobnb-chain:developfrom
jingjunLi:develop-fix-jounal-performance
May 8, 2024
Merged

fix: performance issue when load journal#2438
zzzckck merged 3 commits intobnb-chain:developfrom
jingjunLi:develop-fix-jounal-performance

Conversation

@jingjunLi
Copy link
Copy Markdown
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 RenRick and fynnss May 8, 2024 03:19
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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
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