-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[R4R]Prefetch state data on mining process #803
Conversation
67aeba3
to
14e4f7f
Compare
core/gaspool.go
Outdated
@@ -25,6 +25,12 @@ import ( | |||
// in a block. The zero value is a pool with zero gas available. | |||
type GasPool uint64 | |||
|
|||
// SetGas set an initial value for gaspool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set
-> sets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do review again after changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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
Description
When miner process mining work, there would be some hard disk access wich are quite time consuming processes.
Rationale
Changes
Notable changes:
Prefetch
inteface so that it would be compatible with miningprefetcher
PrefetchMining
method for state_prefetcher just likePrefetch
but 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)