diff options
| author | Markus Westerlind <markus.westerlind@distilnetworks.com> | 2020-03-06 16:44:22 +0100 |
|---|---|---|
| committer | Markus Westerlind <markus.westerlind@distilnetworks.com> | 2020-03-06 16:48:34 +0100 |
| commit | c6f1215d925561021eec296d9e88aa0305d0a18d (patch) | |
| tree | 9ee7883d3e6dee0d00732317700876ed476a7245 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 9381e8178b49636d4604e4ec0f1263960691c958 (diff) | |
| download | rust-c6f1215d925561021eec296d9e88aa0305d0a18d.tar.gz rust-c6f1215d925561021eec296d9e88aa0305d0a18d.zip | |
perf(dep_graph): Avoid allocating a set on when the number reads are small
`reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd` benchmark which I believe is due to the number of reads are very low in many cases (see https://github.com/rust-lang/rust/pull/50565 for instance). This avoids allocating the set until we start allocating the `reads` `SmallVec` but it is possible that a lower limit might be better (not tested since the improvement will be hard to spot either way).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
