aboutsummaryrefslogtreecommitdiff
path: root/src/boot/me/resolve.ml
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-08 17:43:46 -0700
committerGraydon Hoare <[email protected]>2010-10-08 17:43:46 -0700
commit81e791d7b981bfb815d99832d657d48850e8e0aa (patch)
tree2b4b7e7bf39938f1d34ec31915862e76deeb4c64 /src/boot/me/resolve.ml
parentMore fold caches, cut rustc compile time by 60% again. (diff)
downloadrust-81e791d7b981bfb815d99832d657d48850e8e0aa.tar.xz
rust-81e791d7b981bfb815d99832d657d48850e8e0aa.zip
Add a tag cache for the cases we can't avoid hitting fold; cut rustc compile time by 50%.
Diffstat (limited to 'src/boot/me/resolve.ml')
-rw-r--r--src/boot/me/resolve.ml4
1 files changed, 3 insertions, 1 deletions
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);
;;
(*