]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68031 - Marwes:fold_list, r=estebank
authorbors <bors@rust-lang.org>
Sun, 26 Jan 2020 01:51:50 +0000 (01:51 +0000)
committerbors <bors@rust-lang.org>
Sun, 26 Jan 2020 01:51:50 +0000 (01:51 +0000)
commit086b2a49ec8cabf4a66cbaec6c115afe1b33c057
treee2d29c8c4b125ea5cc8af068d1527d2ce500d7e8
parent83beb0a118f7508b2a1888bfecf4e46640b9b3c2
parenta1586f1d2b17d687444d3b94aedd7ce24ae074ed
Auto merge of #68031 - Marwes:fold_list, r=estebank

perf: Avoid creating a SmallVec if nothing changes during a fold

Not sure if this helps but in theory it should be less work than what
the current micro optimization does for `ty::Predicate` lists.

(It would explain the overhead I am seeing from `perf`.)
src/librustc/ty/structural_impls.rs