Files
rust/compiler
Nadrieril e608d8f4e5 Make DefIdForest cheaper to clone
Since `DefIdForest` contains 0 or 1 elements the large majority of the
time, by allocating only in the >1 case we avoid almost all allocations,
compared to `Arc<SmallVec<[DefId;1]>>`. This shaves off 0.2% on the
benchmark that stresses uninhabitedness checking.
2021-01-12 20:31:58 +00:00
..
2020-12-26 18:24:10 +01:00
2020-12-14 22:00:46 -05:00
2021-01-10 21:24:32 -08:00