bors
477fd7038c
Auto merge of #91407 - the8472:deserialize-unchecked-utf8, r=michaelwoerister
...
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.
2021-12-07 21:50:46 +00:00
..
2021-12-03 23:51:46 +01:00
2021-12-04 19:40:33 +01:00
2021-11-27 11:46:44 +01:00
2021-12-07 11:05:06 +01:00
2021-11-30 13:08:41 -05:00
2021-12-04 05:59:16 +00:00
2021-12-04 10:42:20 +01:00
2021-12-04 19:40:33 +01:00
2021-12-06 01:02:49 -05:00
2021-12-06 01:02:49 -05:00
2021-12-03 23:51:49 +01:00
2021-12-05 03:41:18 +00:00
2021-12-06 20:30:15 -05:00
2021-11-30 09:25:17 -08:00
2021-12-02 15:52:03 +01:00
2021-12-04 19:40:33 +01:00
2021-12-03 23:51:49 +01:00
2021-12-04 19:40:33 +01:00
2021-12-05 12:45:51 -08:00
2021-11-24 15:51:46 +00:00
2021-12-07 11:05:00 +01:00
2021-12-04 14:34:20 -05:00
2021-12-03 13:20:14 +00:00
2021-12-03 03:51:47 +01:00
2021-12-06 03:51:05 +00:00
2021-12-02 16:14:18 +00:00
2021-12-01 21:59:54 +00:00
2021-12-06 13:04:18 +00:00
2021-12-03 23:51:46 +01:00
2021-12-05 03:41:18 +00:00
2021-12-06 13:04:18 +00:00
2021-12-05 00:37:56 +01:00
2021-12-03 18:38:32 +00:00
2021-11-28 21:09:45 +01:00
2021-11-29 07:23:46 -08:00
2021-12-03 18:41:40 +00:00
2021-12-06 18:43:01 +01:00
2021-12-05 15:33:44 +00:00
2021-12-07 14:23:01 +00:00
2021-12-07 14:23:01 +00:00
2021-12-05 15:33:44 +00:00
2021-12-02 16:14:16 +00:00
2021-12-03 10:11:21 -03:00
2021-12-07 11:05:03 +01:00