hashes: add x86 SSE4 single-block acceleration
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- cryptography, performance
Research direction
Start by reading the referenced Bitcoin Core file, src/crypto/sha256_sse4.cpp, and then inspect the repository's existing SHA256 optimizations. Decide whether the implementation should use Rust intrinsics or assembly, and define completion around adding x86 SSE4 single-block SHA256 acceleration without losing the consistency and portability considerations described in the issue.
Written by the indexing model from the issue text.
Description
Opening this so we don't lose track of it.
I think this is the only optimization left to do for SHA256.
AFAIK there isn’t currently a Rust crate that implements SHA256 with SSSE3 instructions, but the Assembly code can be found in Core https://github.com/bitcoin/bitcoin/blob/fbe628756cc417dd4b6ccd9d3a709ca8e2f6023c/src/crypto/sha256_sse4.cpp
tho It might be worth going with an all-intrinsics approach to stay consistent with the other optimizations we've done. This would also make it possible to provide Miri shims later, and avoid unexpected bugs like https://github.com/bitcoin/bitcoin/pull/34953.
As far as I know intrinsics have almost the same performance as the asm version anyway (or even slightly better)
- Dominant language
- Rust
- Stars
- 2.7k
- Forks
- 1.1k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-bitcoin/rust-bitcoin
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-bitcoin/rust-bitcoin#7291 ·
Maintainers usually reply within 1 day
-
primitives: `Witness` is missing functionality to read the items in reverse orderPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
rust-bitcoin/rust-bitcoin#7176 · 8 comments ·
Maintainers usually reply within 1 day
-
p2p: `VersionMessage` decoding rejects a missing relay byte, which BIP37 makes optionalPossibly taken @nyonson claimed this 27 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
rust-bitcoin/rust-bitcoin#7073 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-bitcoin/rust-bitcoin#6793 · 30 comments ·
Maintainers usually reply within 1 day
-
Use ubuntu 26 in CIPossibly taken @Yunusabdul38 claimed this 203 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-bitcoin/rust-bitcoin#6175 · 3 comments ·
Maintainers usually reply within 1 day
All issues in rust-bitcoin/rust-bitcoin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
marklauter/tsong#110 ·
-
docs enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vortex-data/vortex#12633 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day