diff options
| author | bors <bors@rust-lang.org> | 2021-03-22 06:45:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-22 06:45:33 +0000 |
| commit | 2b8fbe6b0b6db7960828bd2c9a50e52c9a5d0aef (patch) | |
| tree | 92d9b94cd437e9e7ca01080b10e87d0475444cfb /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 142c831861ba5a995fd9de99198e7f6074b6b400 (diff) | |
| parent | 1e6d8495ba63255407ebea058f2194b65ccc307d (diff) | |
| download | rust-2b8fbe6b0b6db7960828bd2c9a50e52c9a5d0aef.tar.gz rust-2b8fbe6b0b6db7960828bd2c9a50e52c9a5d0aef.zip | |
Auto merge of #82855 - jyn514:no-temporaries, r=GuillaumeGomez
Avoid temporary allocations in `render_assoc_item` `render_assoc_item` came up as very hot in a profile of rustdoc on `bevy`. This avoids some temporary allocations just to calculate the length of the header. This should be a strict improvement, since all string formatting was done twice before. cc #82845
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
