about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMarkus Westerlind <markus.westerlind@distilnetworks.com>2020-03-06 16:44:22 +0100
committerMarkus Westerlind <markus.westerlind@distilnetworks.com>2020-03-06 16:48:34 +0100
commitc6f1215d925561021eec296d9e88aa0305d0a18d (patch)
tree9ee7883d3e6dee0d00732317700876ed476a7245 /src/libstd/sys/unix/stack_overflow.rs
parent9381e8178b49636d4604e4ec0f1263960691c958 (diff)
downloadrust-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/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions