-
Notifications
You must be signed in to change notification settings - Fork 258
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
use storage multi_get #3306
use storage multi_get #3306
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3306 +/- ##
==========================================
- Coverage 32.08% 31.82% -0.25%
==========================================
Files 500 500
Lines 46282 46772 +490
Branches 20930 21268 +338
==========================================
+ Hits 14843 14880 +37
- Misses 17862 17912 +50
- Partials 13577 13980 +403
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Benchmark for 40a716bClick to view benchmark
|
list_block 需要修改下 |
@@ -298,6 +301,7 @@ impl ReadableChainService for ChainReaderServiceInner { | |||
self.storage.get_blocks(ids) | |||
} | |||
|
|||
// XXX FIXME different get_blocks |
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.
这里风格使用Vec,其他地方用的是Vec<Option>不统一
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
Benchmark for cd79ea6Click to view benchmark
|
Benchmark for c360298Click to view benchmark
|
Benchmark for 6e28b2aClick to view benchmark
|
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
use multi_get replace for loop
Other information