From 81e791d7b981bfb815d99832d657d48850e8e0aa Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 8 Oct 2010 17:43:46 -0700 Subject: Add a tag cache for the cases we can't avoid hitting fold; cut rustc compile time by 50%. --- src/boot/me/resolve.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/boot/me/resolve.ml') diff --git a/src/boot/me/resolve.ml b/src/boot/me/resolve.ml index 118e5b49..3f44872e 100644 --- a/src/boot/me/resolve.ml +++ b/src/boot/me/resolve.ml @@ -869,7 +869,9 @@ let process_crate (Hashtbl.find cx.ctxt_all_item_names n) end cx.ctxt_node_referenced; - end + end; + (* Post-resolve, we can establish a tag cache. *) + cx.ctxt_tag_cache <- Some (Hashtbl.create 0); ;; (* -- cgit v1.2.3