rust/compiler/rustc_metadata/src
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
..
dynamic_lib mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
rmeta Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
creader.rs Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister 2021-10-05 09:45:11 +00:00
dependency_format.rs Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
dynamic_lib.rs Use #[non_exhaustive] where appropriate 2021-06-24 04:16:11 -04:00
foreign_modules.rs Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
lib.rs Move EncodedMetadata to rustc_metadata. 2021-09-30 19:41:32 +02:00
locator.rs Rollup merge of #89546 - joshtriplett:grow-metadata-faster, r=petrochenkov 2021-10-05 12:52:49 -07:00
native_libs.rs Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister 2021-10-05 09:45:11 +00:00