diff options
| author | The 8472 <git@infinite-source.de> | 2021-12-01 00:31:46 +0100 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2021-12-06 18:43:01 +0100 |
| commit | c640f31c9f4b2159ebd2817904fcbc7077cec57a (patch) | |
| tree | a373660033e46bafcf70d6890b173ba7891a2efa /compiler/rustc_codegen_llvm/src | |
| parent | 207c80f105282245d93024c95ac408c622f70114 (diff) | |
| download | rust-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
