aboutsummaryrefslogtreecommitdiff
path: root/kernel/univ.ml
diff options
context:
space:
mode:
authorletouzey2011-09-22 19:08:47 +0000
committerletouzey2011-09-22 19:08:47 +0000
commit2c968766b5bb57041694782ae2ffcda82ea5fe38 (patch)
tree1dc8e1646926bea3609c8b0a5f5724019defa5a7 /kernel/univ.ml
parente15d40ac526eeac7c725e4defc2ddb9dde56212a (diff)
Hash-consing: attempt to stop hash-consing separately constr in declare.ml
Now that Yann has provided a better hashing mechanism for constr, it might be interesting to (re-?)activate a global hash-consing of constr. Earlier, specific hash-cons tables were created at each call to hcons_constant_declaration. According to Hugo, this was meant to avoid blow-up in at least contrib Pocklington. This contrib seems to behave nicely now with global hashconsing (thanks Yann ;-). We'll see tomorrow what impact this has on other contribs. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14487 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/univ.ml')
-rw-r--r--kernel/univ.ml6
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/univ.ml b/kernel/univ.ml
index c68021a209..ba14771aab 100644
--- a/kernel/univ.ml
+++ b/kernel/univ.ml
@@ -859,11 +859,7 @@ module Huniv =
end)
let hcons1_univlevel =
- (* Beware: it is important to run the next line at launch-time
- since it creates internal hash-tables.
- We could/should probably share the other calls to [hcons_names]
- in Term and Declare *)
- let _,_,hdir,_,_ = Names.hcons_names() in
+ let _,_,hdir,_,_ = Names.hcons_names in
Hashcons.simple_hcons Hunivlevel.f hdir
let hcons1_univ = Hashcons.simple_hcons Huniv.f hcons1_univlevel