]> git.lizzy.rs Git - rust.git/commit
introduce a specializes cache
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 17 May 2016 16:05:02 +0000 (12:05 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 17 May 2016 19:52:03 +0000 (15:52 -0400)
commit29dad1a280f0f346bcbd013239ffb45b2866c2aa
tree2b8370b9128dcfd2c62ea2da36252d5cc0336938
parent5d12502d3a54aaad5e1af48111ecc81a1c2cbf2b
introduce a specializes cache

This query is frequently used during trait selection and caching the
result can be a reasonable performance win.
src/librustc/traits/mod.rs
src/librustc/traits/specialize/mod.rs
src/librustc/ty/context.rs