[pypy-svn] pypy default: This likely "fixes" for now the performance issue of running
arigo
commits-noreply at bitbucket.org
Fri Apr 8 22:53:08 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r43236:d91a8e70580c
Date: 2011-04-08 22:52 +0200
http://bitbucket.org/pypy/pypy/changeset/d91a8e70580c/
Log: This likely "fixes" for now the performance issue of running "pypy-c
translate.py". We have to think about it more and redo this
somehow.
diff --git a/pypy/interpreter/function.py b/pypy/interpreter/function.py
--- a/pypy/interpreter/function.py
+++ b/pypy/interpreter/function.py
@@ -28,7 +28,9 @@
self.items = items
def getitems(self):
- return jit.hint(self, promote=True).items
+ ## XXX! we would like: return jit.hint(self, promote=True).items
+ ## XXX! but it gives horrible performance in some cases
+ return self.items
def getitem(self, idx):
return self.getitems()[idx]
More information about the Pypy-commit
mailing list