]> git.lizzy.rs Git - rust.git/commit
Use `SmallVec` for the queue in `coerce_unsized`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 26 Oct 2018 08:33:51 +0000 (19:33 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Fri, 26 Oct 2018 08:33:51 +0000 (19:33 +1100)
commit526dc1421b48e3ee8357d58d997e7a0f4bb26915
tree4129e34d1aeabcf74de1ca7d94c2756a4b707a25
parentf99911a4a0bead7dd1f9ef2f90442844434cc391
Use `SmallVec` for the queue in `coerce_unsized`.

This reduces the number of allocations done for the `tuple-stress`
benchmark by 4%.
src/librustc_typeck/check/coercion.rs