diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-05-14 09:39:50 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-05-18 05:41:59 +1000 |
| commit | 4b7c3d88c6488d552214738cfb4dc0a05549a103 (patch) | |
| tree | 23c081447f15d1cc890156b97cef2b514bb0005c /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 34cce58d81f006a5406fcae918db4492e6cf2784 (diff) | |
| download | rust-4b7c3d88c6488d552214738cfb4dc0a05549a103.tar.gz rust-4b7c3d88c6488d552214738cfb4dc0a05549a103.zip | |
Make `fold` standalone.
`fold` is currently implemented via `try_fold`, but implementing it directly results in slightly less LLVM IR being generated, speeding up compilation of some benchmarks. (And likewise for `rfold`.) The commit adds `fold` implementations to all the iterators that lack one but do have a `try_fold` implementation. Most of these just call the `try_fold` implementation directly.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
