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