Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #91407 - the8472:deserialize-unchecked-utf8, r=michaelw…
…oerister 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.
- Loading branch information