D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20887 - Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
Summary: Improve speed of std.digest.digest!(Hash, Range) on non-array ranges
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-05-31 00:57 UTC by Nathan S.
Modified: 2020-05-31 03:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2020-05-31 00:57:00 UTC
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 Dlang Bot 2020-05-31 01:09:29 UTC
@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 Dlang Bot 2020-05-31 03:21:50 UTC
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