-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
optimization: reserve memory allocation for transaction inputs/outputs #30093
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
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.
Concept ACK
aaed2db
to
a1c3d58
Compare
794db03
to
1cdecda
Compare
1cdecda
to
d23be15
Compare
d23be15
to
ebf8667
Compare
Concept ACK I noticed you have benchmarks, would be nice to have the comparison of old vs new in the PR description. |
Thanks for the review @josibake, I've added the conclusions of the benchmarks to the commit message (but copied it to the PR description as well now), can you please check if ebf8667 answers your questions? @theuni, appreciate your previous reviews and insights, please take a look at the changes I did since. |
Changes look good. The bench is not really useful though, because it's testing things that aren't in our code. I believe @josibake was asking for a bench that demonstrates a before/after of |
ebf8667
to
a5b9175
Compare
Moved the benchmark out to https://gist.github.com/paplorinc/812007eef71d5285be0654375ea3e03e |
a5b9175
to
db2a31c
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.
utACK db2a31c
db2a31c
to
634e266
Compare
Accommodating possible later insert as well Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
634e266
to
ec585f1
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.
ACK ec585f1
Reserved memory for the transaction inputs and outputs.
Split out of https://github.com/bitcoin/bitcoin/pull/30050/files#r1597631104