[pypy-svn] pypy numpy-exp: Add an essential hint
fijal
commits-noreply at bitbucket.org
Fri Feb 11 11:42:19 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-exp
Changeset: r41819:3910329595cc
Date: 2011-02-11 12:41 +0200
http://bitbucket.org/pypy/pypy/changeset/3910329595cc/
Log: Add an essential hint
diff --git a/pypy/module/micronumpy/numarray.py b/pypy/module/micronumpy/numarray.py
--- a/pypy/module/micronumpy/numarray.py
+++ b/pypy/module/micronumpy/numarray.py
@@ -18,6 +18,7 @@
'locals[*]']
def __init__(self, input):
+ self = jit.hint(self, access_directly=True, fresh_virtualizable=True)
self.valuestackdepth = 0
self.valuestack = [0.0] * len(input)
self.locals = input[:]
More information about the Pypy-commit
mailing list