Skip to content

Conversation

@getChan
Copy link
Contributor

@getChan getChan commented Dec 29, 2025

Which issue does this PR close?

  • Closes #.

Rationale for this change

  1. add crypto function benchmark code
  2. simplify inner digest function code
    1. I checked for any performance changes using the benchmark code(1), but there was no changement.

What changes are included in this PR?

Are these changes tested?

yes.

Are there any user-facing changes?

no

@github-actions github-actions bot added the functions Changes to functions implementation label Dec 29, 2025
digest.finalize()
})
})
.map(|x| x.map(|x| $METHOD::digest(x)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same code as before.

#[inline]
fn digest(data: impl AsRef<[u8]>) -> Output<Self> {
    let mut hasher = Self::default();
    hasher.update(data.as_ref());
    hasher.finalize()
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Might need some more context here; don't see how this is same code as before considering this code snippet seems to be out of nowhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

Just need to fix conflict

# Conflicts:
#	datafusion/functions/Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants