-
Notifications
You must be signed in to change notification settings - Fork 725
[Refactor] Make HexStr take a span #2482
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
[Refactor] Make HexStr take a span #2482
Conversation
485ab84 to
ff44897
Compare
random-zebra
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.
Looking good. Few unneeded conversions to vector for c-arrays.
|
updated per feedback. |
ff44897 to
2770504
Compare
random-zebra
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.
Not compiling due to a typo. Also needs rebase.
2770504 to
92aa2e6
Compare
Problem: - Nothing uses the `fspaces` argument to `HexStr()` besides unit tests. This argument results in extra complexity and a small performance decrease within the function for branch evaluation. Solution: - Remove unused `fspaces` option.
92aa2e6 to
d4408cd
Compare
|
updated per feedback + rebased. |
random-zebra
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 d4408cd
Fuzzbawls
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 b011c51
Follow up to #2470. Only the last two commits are from this work.
Make
HexStrtake a span of bytes, instead of an awkward pair of templated iterators. Simplifying most of the uses.Adaptation of bitcoin#19660 and bitcoin#15573.