about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-21 08:51:10 +0100
committerGitHub <noreply@github.com>2020-03-21 08:51:10 +0100
commit9adfb18def426e32905ec4fbd83339fdc366a07c (patch)
tree5cb7de8d460687b4b958304fc3729a25bc37a8a3 /src/librustc
parent5f13820478907b09d50baf74f3ff2b78499ecd6c (diff)
parent027c8d998e30a362319b54b80aaf8cf8ff5bc39d (diff)
Rollup merge of #67888 - Zoxc:metadata-prefetch, r=matthewjasper
Prefetch some queries used by the metadata encoder

This brings the time for `metadata encoding and writing` for `syntex_syntax` from 1.338s to 0.997s with 6 threads in non-incremental debug mode.

r? @Mark-Simulacrum
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/ty/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs
index 0e3776f32e0..9b67d423510 100644
--- a/src/librustc/ty/context.rs
+++ b/src/librustc/ty/context.rs
@@ -1323,7 +1323,7 @@ impl<'tcx> TyCtxt<'tcx> {
     }
 
     pub fn encode_metadata(self) -> EncodedMetadata {
-        let _prof_timer = self.prof.generic_activity("generate_crate_metadata");
+        let _prof_timer = self.prof.verbose_generic_activity("generate_crate_metadata");
         self.cstore.encode_metadata(self)
     }