-
Notifications
You must be signed in to change notification settings - Fork 38.8k
fuzz: Speed up PickValue in txorphan #30474
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
|
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. |
|
I forgot to mention the fuzz input for testing. It is |
dergoegge
left a comment
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 fa4e7964792255a34df4813c834aaa2f8ca53e46
|
🚧 At least one of the CI tasks failed. HintsMake sure to run all tests locally, according to the documentation. The failure may happen due to a number of reasons, for example:
Leave a comment here, if you need help tracking down a confusing failure. |
|
Re-running known Wine CI failure. |
glozow
left a comment
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, thanks @maflcko!
|
utACK fa030ad6b6c124f332cea071e16c1519ae7ea423 (could you please add me as co-author, |
Co-Authored-By: l0rinc <[email protected]>
Sure, done |
glozow
left a comment
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 fa33a63, thanks for taking the suggestion
dergoegge
left a comment
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 fa33a63

PickValuewill advance a begin iterator on theoutpointsset, which is expensive, because it only has a++operator. As it is called in a loop ofnum_in(~outpoints.size()), the runtime isO(outpoints.size() ^ 2).Fix it by making the runtime linear.