diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-10-05 12:52:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 12:52:49 -0700 |
| commit | 5f8b1614d110fc3f0cd8536e08822a8cead32172 (patch) | |
| tree | 411ef5015faad89dc56928c2040b47fd2cff070f /compiler/rustc_codegen_llvm/src/callee.rs | |
| parent | f71b3e2b46505fda8dea7187fa90b80472f7abfa (diff) | |
| parent | c35a700be2aebc0449a16fa1a09d7667aa209230 (diff) | |
| download | rust-5f8b1614d110fc3f0cd8536e08822a8cead32172.tar.gz rust-5f8b1614d110fc3f0cd8536e08822a8cead32172.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/callee.rs')
0 files changed, 0 insertions, 0 deletions
