diff options
| author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2025-04-26 22:06:42 +0200 |
|---|---|---|
| committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2025-04-26 22:06:44 +0200 |
| commit | 6f5698c3683f0b158399c0c22c88234dfb695c29 (patch) | |
| tree | 41dd6b28c649bcabb61d9636e764ae241f8307ec /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 10fa3c449f6b1613b352a6cbf78d3d91fd9a1d81 (diff) | |
| download | rust-6f5698c3683f0b158399c0c22c88234dfb695c29.tar.gz rust-6f5698c3683f0b158399c0c22c88234dfb695c29.zip | |
Avoid re-interning in `LateContext::get_def_path`
The def path printer in `get_def_path` essentially calls `Symbol::intern(&symbol.to_string())` for simple symbols in a path. This accounts for ~30% of the runtime of get_def_path. We can avoid this by simply appending the symbol directly when available.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
