Author: Carl Friedrich Bolz <[email protected]>
Branch: typed-cells
Changeset: r81822:dc5f27cbb7d7
Date: 2016-01-15 20:31 +0100
http://bitbucket.org/pypy/pypy/changeset/dc5f27cbb7d7/

Log:    optimization: _pure_read already calls _read_cell, so no need to do
        it again (even though that is safe)

diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py
--- a/pypy/objspace/std/mapdict.py
+++ b/pypy/objspace/std/mapdict.py
@@ -40,7 +40,7 @@
             jit.isconstant(obj) and
             not attr.ever_mutated
         ):
-            result = attr._pure_read(obj)
+            return attr._pure_read(obj)
         else:
             result = obj._mapdict_read_storage(attr.storageindex)
         return attr._read_cell(result)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to