[PyPy-issue] [issue640] Possible optimization in FOR_ITER on a constant tuple

Armin Rigo pypy-dev-issue at codespeak.net
Sat Feb 26 01:19:05 CET 2011

Armin Rigo <armin.rigo at gmail.com> added the comment:

I meant "where" does the iterator p7 come from, in the literal sense --- is it
an input argument of the loop?  (I guess that the answer is yes)

I'm not 100% sure, but I think that it would be enough to mark 'tupleitems' as
an immutable field.  Now of course the problem is (again this issue) that it
cannot be an immutable field right now, and it's not obvious how to fix it,
because we want the effect that at the end of the iteration we stop keeping a
reference to 'tupleitems'...

PyPy development tracker <pypy-dev-issue at codespeak.net>

More information about the Pypy-issue mailing list