-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Storage] Refactor badger cache and all the client code to use generics #4565
Conversation
Thanks for the PR @nozim, I've gone ahead and kicked-off the CI for the branch, and will try to have someone look over the PR soon. In the mean time, i had to update the branch with latest master to update a dependency that was causing problems for CI, and that seems to have broken tidy. |
Looks good, did you try measuring performance impact of usings generics instead of I would be interested to see at least synthetic benchmarks so we could compare old implementation vs new. Running localnet benchmark should also give some insights. Ideally I would like to see both. |
@durkmurder good question, will do a small benchmark :) |
… into 3932-refactor-badger-cache
Added small example comparing to interface implementation. @durkmurder fyi :) This is one of results:
|
@nozim Thank you, this is good to go. Can you remove those benchmarks and run lint and tidy? FYI, you can try passing actual type instead of any and it will be even faster, it's very recognizable if you move I will approve this after you cleanup it. |
@nozim just to make it clear, we don't want to merge the benchmark(and iface cache implementation) in master since we don't plan to use previous cache implementation. |
@durkmurder yes, totally makes sense. Will clean it up as well ;) |
Codecov Report
@@ Coverage Diff @@
## master #4565 +/- ##
==========================================
- Coverage 56.25% 51.73% -4.52%
==========================================
Files 653 734 +81
Lines 64699 66142 +1443
==========================================
- Hits 36396 34219 -2177
- Misses 25362 29295 +3933
+ Partials 2941 2628 -313
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Thanks for cleaning this up @nozim! added a few small stylistic comments, but looks good.
@peterargue thanks for review, will address all of the notes ) |
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.
👍
@nozim can you fix last lint errors so I can approve? We can merge right after |
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.
🚢
seems like a glitch in engine unit test? |
Re: #3932