[R4R]Prefetch state data on mining process#803
Merged
unclezoro merged 11 commits intobnb-chain:developfrom Mar 28, 2022
Merged
Conversation
67aeba3 to
14e4f7f
Compare
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 20, 2022
unclezoro
reviewed
Mar 22, 2022
unclezoro
approved these changes
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
setunapo
reviewed
Mar 22, 2022
Mercybudda
reviewed
Mar 22, 2022
yutianwu
reviewed
Mar 24, 2022
core/gaspool.go
Outdated
| // in a block. The zero value is a pool with zero gas available. | ||
| type GasPool uint64 | ||
|
|
||
| // SetGas set an initial value for gaspool |
setunapo
reviewed
Mar 24, 2022
setunapo
reviewed
Mar 25, 2022
yutianwu
reviewed
Mar 25, 2022
setunapo
reviewed
Mar 25, 2022
unclezoro
suggested changes
Mar 25, 2022
Contributor
unclezoro
left a comment
There was a problem hiding this comment.
Will do review again after changes
setunapo
reviewed
Mar 25, 2022
setunapo
reviewed
Mar 25, 2022
setunapo
reviewed
Mar 25, 2022
unclezoro
reviewed
Mar 25, 2022
unclezoro
approved these changes
Mar 25, 2022
forcodedancing
approved these changes
Mar 25, 2022
unclezoro
pushed a commit
that referenced
this pull request
Mar 29, 2022
* perf(miner):add mining prefetcher * fix ineffassign * fix comments * fix comments * fix comments: add AsMessagePrefetch to skip nonce check * fix comment:refactor check order of method Forward * fix comments:rename variables * fix comments: rename * rename * fix comments: refactor * update
This was referenced Apr 8, 2022
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When miner process mining work, there would be some hard disk access wich are quite time consuming processes.
Rationale
Changes
Notable changes:
Prefetchinteface so that it would be compatible with miningprefetcherPrefetchMiningmethod for state_prefetcher just likePrefetchbut a mining versionPerformance
The proportion of I/O overhead in mining block cost improvement.(green line represents this version)


The proportion of time delay in mining block process improvement.(green line represents this version)