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 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
collection_impls.rs Remove unused functions and arguments from rustc_serialize 2021-06-01 19:29:11 +02:00
json.rs Avoid generating empty closures for fieldless enums 2021-11-22 21:22:35 -05:00
leb128.rs rustc_serialize: fix incorrect signed LEB128 decoding 2021-01-11 12:13:26 -08:00
lib.rs Remove box syntax from rustc_serialize 2021-08-18 09:25:26 +02:00
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