Bug 20939 – sha.digest.sha: increase the speed of SHA256 and SHA512 in non-optimized builds, and bring optimized DMD builds closer to the speed of LDC

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-06-17T01:08:39Z
Last change time
2024-12-01T16:37:00Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Moved to GitHub: phobos#10423 →

Comments

Comment #0 by n8sh.secondary — 2020-06-17T01:08:39Z
Compiled by DMD with no optimizations enabled (a common and even recommended way of using DMD), sha.digest.sha.SHA256 and SHA512 can take up to 26x as much time as they would if compiled with `ldc2 -O3`. This can be substantially improved. This problem is not shared by SHA-1 because it uses an optimized SSE3 implementation.
Comment #1 by dlang-bot — 2020-06-17T01:33:51Z
@n8sh created dlang/phobos pull request #7534 "increase the speed of SHA256 and SHA512 in non-optimized builds and bring optimized DMD builds closer to the speed of LDC" fixing this issue: - Fix Issue 20939: increase the speed of SHA256 and SHA512 in non-optimized builds and bring optimized DMD builds closer to the speed of LDC https://github.com/dlang/phobos/pull/7534
Comment #2 by robert.schadek — 2024-12-01T16:37:00Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10423 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB