[pypy-commit] pypy default: (arigo, agaynor) actually do a speedup

fijal noreply at buildbot.pypy.org
Sat Jan 5 20:14:27 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r59773:f955a74e6c70
Date: 2013-01-05 21:13 +0200
http://bitbucket.org/pypy/pypy/changeset/f955a74e6c70/

Log:	(arigo, agaynor) actually do a speedup

diff --git a/pypy/module/pyexpat/interp_pyexpat.py b/pypy/module/pyexpat/interp_pyexpat.py
--- a/pypy/module/pyexpat/interp_pyexpat.py
+++ b/pypy/module/pyexpat/interp_pyexpat.py
@@ -198,7 +198,10 @@
     def get_object(id):
         if id == global_storage._last_object_id:
             return global_storage._last_object
-        return global_storage.storage[id]
+        result = global_storage.storage[id]
+        global_storage._last_object_id = id
+        global_storage._last_object = result
+        return result
 
     @staticmethod
     def free_nonmoving_id(id):


More information about the pypy-commit mailing list