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

SIMD implementation for as-sha256 #356

Closed
twoeths opened this issue Mar 25, 2024 · 0 comments · Fixed by #367
Closed

SIMD implementation for as-sha256 #356

twoeths opened this issue Mar 25, 2024 · 0 comments · Fixed by #367
Assignees

Comments

@twoeths
Copy link
Contributor

twoeths commented Mar 25, 2024

Is your feature request related to a problem? Please describe.

With simd supported in assembly script, we can use it to hash multiple inputs in parallel, especially the digest64() method

Describe the solution you'd like

Use simd instruction in assembly script, we can hash 4 different inputs at the same time which is respective to v128 data structure

Additional context

A POC is available in tuyen/digest_64_simd branch. Benchmark result:

  • on Mac M1 it's 10% - 20% faster
  • on a Hetzner node, it's 70% - 80% faster
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 a pull request may close this issue.

1 participant