about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-15 15:38:52 -0700
committerGitHub <noreply@github.com>2016-10-15 15:38:52 -0700
commit98a3502da1456b209ff031604cabbbcb9d0eddf1 (patch)
treee48daea06a2f6ce76cc64ab12833fbec97945661 /src/liballoc_system
parent5bfe10740168eb8213101c827302b4c45b1b5b74 (diff)
parenta61d85b2fe5ebc25bcc54c7a9e6ce3b98ce00b7c (diff)
downloadrust-98a3502da1456b209ff031604cabbbcb9d0eddf1.tar.gz
rust-98a3502da1456b209ff031604cabbbcb9d0eddf1.zip
Auto merge of #37152 - arielb1:drop-cache, r=pnkfelix
add a per-param-env cache to `impls_bound`

There used to be only a global cache, which led to uncached calls to
trait selection when there were type parameters.

This causes a 20% decrease in borrow-checking time and an overall 0.5% performance increase during bootstrapping (as borrow-checking tends to be a tiny part of compilation time).

Fixes #37106 (drop elaboration times are now ~half of borrow checking,
so might still be worthy of optimization, but not critical).

r? @pnkfelix
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions