about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2021-12-01 00:31:46 +0100
committerThe 8472 <git@infinite-source.de>2021-12-06 18:43:01 +0100
commitc640f31c9f4b2159ebd2817904fcbc7077cec57a (patch)
treea373660033e46bafcf70d6890b173ba7891a2efa /compiler/rustc_codegen_llvm/src
parent207c80f105282245d93024c95ac408c622f70114 (diff)
downloadrust-c640f31c9f4b2159ebd2817904fcbc7077cec57a.tar.gz
rust-c640f31c9f4b2159ebd2817904fcbc7077cec57a.zip
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 that doesn't have to
be utf8 validation for strings, which does cost a few % 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