XML.Cache: intern property keys once and for all (again);
authorwenzelm
Sat, 28 Aug 2010 22:58:24 +0200
changeset 38844 f3221fd64426
parent 38843 d95522496593
child 38845 a9e37daf5bd0
XML.Cache: intern property keys once and for all (again);
src/Pure/General/xml.scala
--- a/src/Pure/General/xml.scala	Sat Aug 28 20:24:41 2010 +0200
+++ b/src/Pure/General/xml.scala	Sat Aug 28 22:58:24 2010 +0200
@@ -112,7 +112,7 @@
         else
           lookup(x) match {
             case Some(y) => y
-            case None => store(x.map(p => (cache_string(p._1), cache_string(p._2))))
+            case None => store(x.map(p => (cache_string(p._1).intern, cache_string(p._2))))
           }
       def cache_markup(x: Markup): Markup =
         lookup(x) match {