diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-11 16:36:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 16:36:59 +0100 |
| commit | d8b4abc4ad3fa2a230692844ccb499d8064f1ca4 (patch) | |
| tree | e44dd0ab08b515419fff8c3a48145d43bafc49ce /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | c8c2b2bc547f4fc0e36ced79cd7f64d514cc5329 (diff) | |
| parent | b8893df8d344c11880c4aada639727fbfc195792 (diff) | |
| download | rust-d8b4abc4ad3fa2a230692844ccb499d8064f1ca4.tar.gz rust-d8b4abc4ad3fa2a230692844ccb499d8064f1ca4.zip | |
Rollup merge of #69022 - ljedrz:traits_tweak_vecs, r=petrochenkov
traits: preallocate 2 Vecs of known initial size The 2 preallocations are pretty obvious; both vectors will be as big as or larger than the collections they are created from. In `WfPredicates::normalize` the change from a functional style improves readability and should be perf-friendly, too.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
