Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit