rust/compiler/rustc_serialize/src
The 8472 c640f31c9f 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.
2021-12-06 18:43:01 +01:00
..
json
collection_impls.rs
json.rs Avoid generating empty closures for fieldless enums 2021-11-22 21:22:35 -05:00
leb128.rs
lib.rs
opaque.rs avoid string validation in rustc_serialize, check a marker byte instead 2021-12-06 18:43:01 +01:00
serialize.rs Avoid generating empty closures for fieldless enums 2021-11-22 21:22:35 -05:00