rust/compiler/rustc_middle
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
..
2021-01-12 20:31:58 +00:00
2020-12-02 20:28:41 +01:00

For more information about how rustc works, see the rustc dev guide.