rust/compiler/rustc_const_eval
Rémy Rakic 97a0b2e2d0 ctfe interning: don't walk allocations that don't need it
The interning of const allocations visits the mplace looking for references
to intern. Walking big aggregates like big static arrays can be costly,
so we only do it if the allocation we're interning contains references
or interior mutability.

Walking ZSTs was avoided before, and this optimization is now applied
to cases where there are no references/relocations either.
2022-06-28 22:09:28 +02:00
..
src ctfe interning: don't walk allocations that don't need it 2022-06-28 22:09:28 +02:00
Cargo.toml Initial fixes on top of type interner commit 2022-05-28 11:38:22 -07:00