www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20887] New: Improve speed of std.digest.digest!(Hash, Range)

https://issues.dlang.org/show_bug.cgi?id=20887

          Issue ID: 20887
           Summary: Improve speed of std.digest.digest!(Hash, Range) on
                    non-array ranges
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

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.

--
May 30 2020