Skip to content

[Backport maintenance/v2.x] sha256-hasher: Deprecate extend_and_hash#251

Merged
joncinque merged 1 commit into
anza-xyz:maintenance/v2.xfrom
joncinque:v2-dep-extend-and-hash
Jul 25, 2025
Merged

[Backport maintenance/v2.x] sha256-hasher: Deprecate extend_and_hash#251
joncinque merged 1 commit into
anza-xyz:maintenance/v2.xfrom
joncinque:v2-dep-extend-and-hash

Conversation

@joncinque
Copy link
Copy Markdown
Collaborator

Problem

As noted in anza-xyz/agave#7028, the extend_and_hash function is unnecessary and creates another allocation, so we inlined it in Agave.

Summary of changes

Deprecate it formally in the crate.

@joncinque joncinque requested a review from febo July 25, 2025 11:02
@joncinque
Copy link
Copy Markdown
Collaborator Author

CI issue will be addressed with #252

#### Problem

As noted in anza-xyz/agave#7028, the
`extend_and_hash` function is unnecessary and creates another
allocation, so we inlined it in Agave.

#### Summary of changes

Deprecate it formally in the crate. This PR will be backported to v2.x
and published, so we can remove the function in a follow-up PR.
@joncinque joncinque force-pushed the v2-dep-extend-and-hash branch from 4197801 to f6e6db0 Compare July 25, 2025 11:31
Copy link
Copy Markdown
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

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

👌

@joncinque joncinque merged commit 0f0039e into anza-xyz:maintenance/v2.x Jul 25, 2025
24 checks passed
@joncinque joncinque deleted the v2-dep-extend-and-hash branch July 25, 2025 11:47
R4M4NCHICK1

This comment was marked as spam.

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.

3 participants