-
Notifications
You must be signed in to change notification settings - Fork 37.7k
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
|
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 fa4e796
🚧 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. |
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 fa030ad (could you please add me as co-author, |
Co-Authored-By: l0rinc <pap.lorinc@gmail.com>
Sure, done |
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
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
PickValue
will advance a begin iterator on theoutpoints
set, 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.