about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-06-16 14:58:05 +0000
committerbors <bors@rust-lang.org>2019-06-16 14:58:05 +0000
commite3175c34b4211d219f114d6dc608194ebaf03c44 (patch)
tree564893b6b6114d8cf403a70cb76304ecb8cbab8f /src/test/ui/thinlto
parent37b6a5e5e82497caf5353d9d856e4eb5d14cbe06 (diff)
parent0baa9258dd2f901a24d744705f514fa678e64940 (diff)
downloadrust-e3175c34b4211d219f114d6dc608194ebaf03c44.tar.gz
rust-e3175c34b4211d219f114d6dc608194ebaf03c44.zip
Auto merge of #61754 - nikomatsakis:trait-caching-perf-3, r=pnkfelix
create a "provisional cache" to restore performance in the case of cycles

Introduce a "provisional cache" that caches the results of auto trait resolutions but keeps them from entering the *main* cache until everything is ready. This turned out a bit more complex than I hoped, but I don't see another short term fix -- happy to take suggestions! In the meantime, it's very clear we need to rework the trait solver. This resolves the extreme performance slowdown experienced in #60846 -- I plan to add a perf.rust-lang.org regression test to track this.

Caveat: I've not run `x.py test` in full yet.

r? @pnkfelix
cc @arielb1

Fixes #60846
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions