about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-07-25 18:38:28 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-07-29 18:40:58 +0000
commit6d9ee6ee26c296d9361d5f0fb479b2462687fe4e (patch)
treeee792787028161e6d1554df8dc7ed38e951081a6 /compiler/rustc_codegen_llvm/src/errors.rs
parent4db3d12e6f395babed53dee1d209a5c8699a5ae6 (diff)
downloadrust-6d9ee6ee26c296d9361d5f0fb479b2462687fe4e.tar.gz
rust-6d9ee6ee26c296d9361d5f0fb479b2462687fe4e.zip
Change output normalization logic to be linear against size of output
Scan strings to be normalized for printing in a linear scan and collect
the resulting `String` only once.

Use a binary search when looking for chars to be replaced, instead of a
`HashMap::get`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions