rust/crates/hir_ty
Alexandru Macovei fb1f544e24 Use Box'es to reduce size of hir_def::expr::Expr from 128 to 72 bytes (on 64bit systems)
Rationale: only a minority of variants used almost half the size.
By keeping large members (especially in Option) behind a box
the memory cost is only payed when the large variants are needed.

This reduces the size Vec<Expr> needs to allocate.
2021-04-06 16:01:31 +03:00
..
src Use Box'es to reduce size of hir_def::expr::Expr from 128 to 72 bytes (on 64bit systems) 2021-04-06 16:01:31 +03:00
Cargo.toml Use arrayvec 0.7 to avoid perf regression in 0.6.1 2021-04-05 12:58:35 -04:00