Bug 20887 – Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-05-31T00:57:00Z
Last change time
2020-05-31T03:21:50Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2020-05-31T00:57:00Z
Speed up `std.digest.digest!(Hash, Range)` on non-array ranges by chunking the data. I would have liked to use something like `std.stdio.File.byChunk(ubyte[])` but I didn't find anything equivalent. `std.algorithm.iteration.chunkBy` doesn't work for this purpose.
Comment #1 by dlang-bot — 2020-05-31T01:09:29Z
@n8sh created dlang/phobos pull request #7509 "Improve speed of std.digest.digest!(Hash, Range) on non-array ranges" fixing this issue:
- Fix Issue 20887 - Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
https://github.com/dlang/phobos/pull/7509
Comment #2 by dlang-bot — 2020-05-31T03:21:50Z
dlang/phobos pull request #7509 "Improve speed of std.digest.digest!(Hash, Range) on non-array ranges" was merged into master:
- 18f2e6f042efa2e957ed06752f81a09dc4e95139 by Nathan Sashihara:
Fix Issue 20887 - Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
https://github.com/dlang/phobos/pull/7509