Skip to content
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

Eliminate a heap allocation from PartialMerkleTree encoding & decoding #1991

Merged
merged 1 commit into from Aug 11, 2023

Conversation

stevenroose
Copy link
Collaborator

Just came across this and felt like doing this.

Just came across this and felt like doing this.
@apoelstra
Copy link
Member

Nice! This is a pretty cool use for chunks (which I confirmed will yield the remainder if you don't have a multiple-of-8 number of bits).

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK fa10668

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK fa10668

@apoelstra apoelstra merged commit 19bb55f into rust-bitcoin:master Aug 11, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants