about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-03 04:27:27 +0000
committerbors <bors@rust-lang.org>2020-11-03 04:27:27 +0000
commit7b5a9e9cd27f01311b5e19cefa1fb574d086d3da (patch)
tree9230363beaf2afa06e6ee29a060339f2b8dd0d61 /compiler/rustc_resolve/src
parent4c0c5e099a3b1f1c6ad53115189c2710495588b3 (diff)
parent81444b20495e5325a5122f0fba84224846a8dac8 (diff)
downloadrust-7b5a9e9cd27f01311b5e19cefa1fb574d086d3da.tar.gz
rust-7b5a9e9cd27f01311b5e19cefa1fb574d086d3da.zip
Auto merge of #78448 - rylev:cache-foreign_modules, r=wesleywiser
foreign_modules query hash table lookups

When compiling a large monolithic crate we're seeing huge times in the `foreign_modules` query due to repeated iteration over foreign modules (in order to find a module by its id). This implements hash table lookups so that which massively reduces time spent in that query in this particular case. We'll need to see if the overhead of creating the hash table has a negative impact on performance in more normal compilation scenarios.

I'm working with `@wesleywiser` on this.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions