Skip to content

code: remove accountTrieCache and storageTrieCache#1949

Merged
brilliant-lx merged 2 commits intobnb-chain:developfrom
brilliant-lx:remove_trietreecache
Oct 30, 2023
Merged

code: remove accountTrieCache and storageTrieCache#1949
brilliant-lx merged 2 commits intobnb-chain:developfrom
brilliant-lx:remove_trietreecache

Conversation

@brilliant-lx
Copy link
Copy Markdown
Contributor

Description

accountTrieCache and storageTrieCache were introduced in this PR: #257, which is to improve performance. Actually the performance gain is quite limitted, as there is already dirty and clean cache for trie node.
And after big merge, these 2 cache can not be used when PBSS is enabled. So remove these code to simplify the logic.

Rationale

NA

Example

NA

Changes

NA

accountTrieCache and storageTrieCache were introduced in this PR:
bnb-chain#257, which is to improve performance.
Actually the performance gain is quite limitted, as there is already dirty
and clean cache for trie node.
And after big merge, these 2 cache can not be used when PBSS is enabled.
So remove these code to simplify the logic.
@joey0612
Copy link
Copy Markdown
Contributor

revert trie commited flag in other PR ?

@brilliant-lx brilliant-lx merged commit 3bf998f into bnb-chain:develop Oct 30, 2023
whw188 pushed a commit to tylerteea/mev-bsc that referenced this pull request Dec 6, 2023
accountTrieCache and storageTrieCache were introduced in this PR:
bnb-chain#257, which is to improve performance.
Actually the performance gain is quite limited, as there is already dirty
and clean cache for trie node.
And after big merge, these 2 cache can not be used when PBSS is enabled.
So remove these code to simplify the logic.
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.

4 participants