rust/compiler
Manish Goregaokar 5f8b1614d1
Rollup merge of #89546 - joshtriplett:grow-metadata-faster, r=petrochenkov
Make an initial guess for metadata size to reduce buffer resizes

When reading metadata, the compiler starts with a `Vec::new()`, which will need to grow repeatedly as the metadata gets decompressed into it. Reduce the number of resizes by starting out at the size of the compressed data.
2021-10-05 12:52:49 -07:00
..
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:50 +02:00
2021-10-03 16:08:54 +02:00
2021-10-04 02:33:33 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:50 +02:00
2021-09-20 22:21:42 -04:00
2021-10-01 23:17:19 +02:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:57 +02:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:54 +02:00
2021-09-20 22:21:42 -04:00