about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-22 22:36:44 +0000
committerbors <bors@rust-lang.org>2020-03-22 22:36:44 +0000
commite4b01c7791446b2f79a1b1d517223378df2bf5f2 (patch)
treefc02a84a46cc3ecc8a826e3b20b173a548c5cc37 /src/libstd/sys/unix/stack_overflow.rs
parentd1e81ef234ff5c2e0e3a69cb4e8e5f5b0fe1fd83 (diff)
parent4168c25b0f8aadcfe38c8bdae7cc51c22c2f45d1 (diff)
downloadrust-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