diff options
| author | bors <bors@rust-lang.org> | 2020-05-13 14:29:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-13 14:29:56 +0000 |
| commit | 75e1463c52aaea25bd32ed53c73797357e561cce (patch) | |
| tree | 0b9c61044c2ccb5a09931fe6e0bbb8d734884b91 /src/test/rustdoc-ui/doctest-output.rs | |
| parent | 750db09fa800dceebba57d609d42969172118c92 (diff) | |
| parent | 68b75033ad78d88872450a81745cacfc11e58178 (diff) | |
| download | rust-75e1463c52aaea25bd32ed53c73797357e561cce.tar.gz rust-75e1463c52aaea25bd32ed53c73797357e561cce.zip | |
Auto merge of #72013 - nnethercote:make-RawVec-grow-mostly-non-generic, r=Amanieu
Make `RawVec::grow` mostly non-generic. `cargo-llvm-lines` shows that, in various benchmarks, `RawVec::grow` is instantiated 10s or 100s of times and accounts for 1-8% of lines of generated LLVM IR. This commit moves most of `RawVec::grow` into a separate function that isn't parameterized by `T`, which means it doesn't need to be instantiated many times. This reduces compile time significantly. r? @ghost
Diffstat (limited to 'src/test/rustdoc-ui/doctest-output.rs')
0 files changed, 0 insertions, 0 deletions
