diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-03-06 23:30:49 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-03-07 10:18:06 -0500 |
| commit | 1e6d8495ba63255407ebea058f2194b65ccc307d (patch) | |
| tree | 9b3d0ede61c646a66783d8497fe51162b58287e8 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | edeee915b1c52f97411e57ef6b1a8bd46548a37a (diff) | |
| download | rust-1e6d8495ba63255407ebea058f2194b65ccc307d.tar.gz rust-1e6d8495ba63255407ebea058f2194b65ccc307d.zip | |
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
