-
Notifications
You must be signed in to change notification settings - Fork 833
Remove some needless allocations #422
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
Conversation
cd51d00
to
99a6186
Compare
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.
Very much concept ACK. I remember changing many of the Hash::hash
usages into consensus encoding into the engine as well. All these are such obvious wins :)
99a6186
to
83e9077
Compare
Codecov Report
@@ Coverage Diff @@
## master #422 +/- ##
==========================================
+ Coverage 86.71% 86.77% +0.05%
==========================================
Files 40 40
Lines 8689 8988 +299
==========================================
+ Hits 7535 7799 +264
- Misses 1154 1189 +35
Continue to review full report at Codecov.
|
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.
utACK 83e9077
I restarted the nightly test that timed out. I'm pretty confident that it will be ok. |
Travis passed but github doesn't recognize it for some reason, trying to close and re-open to trigger both github and travis |
Maybe you can just git amend with an empty change set and force push to trigger travis? It would invalidate the reviews but that's not a big deal since we could just look at the diff and re-ACK if it's none. |
83e9077
to
af31017
Compare
arghh I force pushed an empty amend because github's status checks are really stubborn, closing-reopening didn't work. @sgeisler @stevenroose Could you please re-approve? |
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
Codecov Report
@@ Coverage Diff @@
## master #422 +/- ##
==========================================
- Coverage 86.71% 85.49% -1.23%
==========================================
Files 40 39 -1
Lines 8689 7540 -1149
==========================================
- Hits 7535 6446 -1089
+ Misses 1154 1094 -60
Continue to review full report at Codecov.
|
Hi,
I removed allocations in places that we serialized into a Vec just to then hash it. instead we can feed the hasher itself instead of a vector and serialize into that.