Skip to content

Use deserialize_hex to avoid intermediate Vec allocation#205

Merged
EddieHouston merged 3 commits intoBlockstream:new-indexfrom
EddieHouston:refactor/deserialize-hex
Apr 14, 2026
Merged

Use deserialize_hex to avoid intermediate Vec allocation#205
EddieHouston merged 3 commits intoBlockstream:new-indexfrom
EddieHouston:refactor/deserialize-hex

Conversation

@EddieHouston
Copy link
Copy Markdown
Collaborator

Summary

RCasatta
RCasatta previously approved these changes Apr 8, 2026
Copy link
Copy Markdown
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.

concept ACK 4f7bf8b

RCasatta
RCasatta previously approved these changes Apr 9, 2026
Copy link
Copy Markdown
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.

utACK 4158fc7, code review

  bitcoin 0.32 provides deserialize_hex which parses hex directly into
  the target type without allocating an intermediate Vec<u8>. The elements
  crate (0.26) doesn't expose this yet, so liquid builds keep the
  two-step FromHex + deserialize path behind a cfg gate.
…y which type (Block, Transaction, BlockHeader) failed.
Copy link
Copy Markdown
Collaborator

@shesek shesek left a comment

Choose a reason for hiding this comment

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

utACK

@EddieHouston EddieHouston merged commit 8915a40 into Blockstream:new-index Apr 14, 2026
6 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.

Use rust bitcoin deserialize_hex when upgrading version

3 participants