8000 Super-trivial: Implement `FusedIterator` for `Instructions` by Kixunil · Pull Request #733 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Super-trivial: Implement FusedIterator for Instructions #733

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

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

Kixunil
Copy link
Collaborator
@Kixunil Kixunil commented Dec 1, 2021

Instructions guarantee to return None from empty iterator so we
should signal this in type system so that the code can be optimized
better. This also adds a test to make sure this property holds.

`Instructions` guarantee to return `None` from empty iterator so we
should signal this in type system so that the code can be optimized
better. This also adds a test to make sure this property holds.
@Kixunil Kixunil force-pushed the impl-fused-instructions branch from 87f36dd to 04a8f89 Compare December 1, 2021 20:38
Copy link
Member
@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 04a8f89. Any special reasons for doing this?

@Kixunil
Copy link
Collaborator Author
Kixunil commented Dec 2, 2021

Any special reasons for doing this?

Was just writing some code and wondering whether it's already fused or not. So part of the reason is documentation value.

@Kixunil Kixunil added trivial Obvious, easy and quick to review (few lines or doc-only...) one ack PRs that have one ACK, so one more can progress them labels Dec 2, 2021
Copy link
Collaborator
@RCasatta RCasatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 04a8f89

@RCasatta RCasatta merged commit 31f0beb into rust-bitcoin:master Dec 3, 2021
@Kixunil Kixunil deleted the impl-fused-instructions branch December 3, 2021 10:24
@Kixunil Kixunil removed the one ack PRs that have one ACK, so one more can progress them label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trivial Obvious, easy and quick to review (few lines or doc-only...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0