diff options
| author | bors <bors@rust-lang.org> | 2020-03-22 22:36:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-03-22 22:36:44 +0000 |
| commit | e4b01c7791446b2f79a1b1d517223378df2bf5f2 (patch) | |
| tree | fc02a84a46cc3ecc8a826e3b20b173a548c5cc37 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d1e81ef234ff5c2e0e3a69cb4e8e5f5b0fe1fd83 (diff) | |
| parent | 4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1 (diff) | |
| download | rust-e4b01c7791446b2f79a1b1d517223378df2bf5f2.tar.gz rust-e4b01c7791446b2f79a1b1d517223378df2bf5f2.zip | |
Auto merge of #69778 - Marwes:dep_graph, r=davidtwco
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/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
