Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r67885:d7386c6804ec
Date: 2013-11-08 15:27 -0800
http://bitbucket.org/pypy/pypy/changeset/d7386c6804ec/

Log:    Only set this key under some circumstances. Might make stuff a tiny
        tiny bit faster

diff --git a/rpython/jit/metainterp/heapcache.py 
b/rpython/jit/metainterp/heapcache.py
--- a/rpython/jit/metainterp/heapcache.py
+++ b/rpython/jit/metainterp/heapcache.py
@@ -96,8 +96,13 @@
                 idx += 1
 
     def _escape(self, box):
-        if box in self.new_boxes:
-            self.new_boxes[box] = False
+        try:
+            unescaped = self.new_boxes[box]
+        except KeyError:
+            pass
+        else:
+            if unescaped:
+                self.new_boxes[box] = False
         try:
             deps = self.dependencies.pop(box)
         except KeyError:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to