Files
rust/compiler/rustc_codegen_ssa
Jacob Pratt de0afe7606 Rollup merge of #158194 - mehdiakiki:rlib-link-meta-cache, r=petrochenkov
Adds RmetaLinkCache a per-link cache that uses path as the key of dec…

Adds `RmetaLinkCache` a per link and path  keyed cache of decoded `lib.rmeta-link` archive members and routes the add_archive read through it so that each rlib link metadata is decoded only one per link at most.

This is a request that originated from the discussion in rust-lang/rust#156735 and we split it out as its own PR. It gives that PR a decode once path to read instead of reparsing each `rlib` per crate, and this will be in effect once `native_lib_filenames` moves to a link-time read.

Part of rust-lang/rust#138243
2026-06-27 22:13:45 -04:00
..
…

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.