diff options
| author | Taras Tsugrii <taras.tsugriy@gmail.com> | 2023-08-01 16:57:43 -0700 |
|---|---|---|
| committer | Taras Tsugrii <taras.tsugriy@gmail.com> | 2023-08-01 16:57:43 -0700 |
| commit | f74eee2fa6620ecb88070ed2eb2dfd7ba12e0b63 (patch) | |
| tree | 1285934e6e0b5563cda3d7fdb27ca7f1ea8406a6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | abd3637e42bdccc4afd5d5ae9a96d9a0e7246e67 (diff) | |
| download | rust-f74eee2fa6620ecb88070ed2eb2dfd7ba12e0b63.tar.gz rust-f74eee2fa6620ecb88070ed2eb2dfd7ba12e0b63.zip | |
[rustc_span][perf] Remove unnecessary string joins and allocs.
Comparing vectors of string parts yields the same result but avoids unnecessary `join` and potential allocation for resulting `String`. This code is cold so it's unlikely to have any measurable impact, but considering but since it's also simpler, why not? :)
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
