about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-07 21:50:46 +0000
committerbors <bors@rust-lang.org>2021-12-07 21:50:46 +0000
commit477fd7038c235689913abf9208dfa9371cbacd88 (patch)
treedcc5d4942973e667bf2d8b6f3a843f5225663107 /compiler/rustc_codegen_llvm/src
parent0b6f079e4987ded15c13a15b734e7cfb8176839f (diff)
parentc640f31c9f4b2159ebd2817904fcbc7077cec57a (diff)
downloadrust-477fd7038c235689913abf9208dfa9371cbacd88.tar.gz
rust-477fd7038c235689913abf9208dfa9371cbacd88.zip
Auto merge of #91407 - the8472:deserialize-unchecked-utf8, r=michaelwoerister
Avoid string validation in rustc_serialize, check a marker byte instead

Since the serialization format isn't self-describing we need a way to detect when encoder and decoder don't match up. But for strings it doesn't have to be utf8 validation, which currently does cost a few percent of performance.
Instead we can use a marker byte at the end to be reasonably sure that we're dealing with a string and it wasn't overwritten in some way.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions