Files
rust/compiler/rustc_span/src
Mark Rousskov 6630d69085 Specialize DefPathHash table to skip crate IDs
Instead, we store just the local crate hash as a bare u64. On decoding,
we recombine it with the crate's stable crate ID stored separately in
metadata. The end result is that we save ~8 bytes/DefIndex in metadata
size.

One key detail here is that we no longer distinguish in encoded metadata
between present and non-present DefPathHashes. It used to be highly
likely we could distinguish as we used DefPathHash::default(), an
all-zero representation. However in theory even that is fallible as
nothing strictly prevents the StableCrateId from being zero.
2023-12-23 14:10:28 -05:00
..
2023-12-10 10:56:22 +08:00
2023-12-10 13:03:28 -08:00
2023-11-22 18:38:17 +11:00
2023-12-10 10:56:22 +08:00
2023-12-19 12:26:27 -08:00
2023-09-07 13:05:05 +02:00