[pypy-issue] [issue1316] fix the namedtuple slowness

Fijal tracker at bugs.pypy.org
Wed Nov 7 11:54:53 CET 2012


New submission from Fijal <fijall at gmail.com>:

Additionally to 1315 this is a program where we would liek to prove 0 is a 
constant:


def wrapper(num):
    def func(x):
        return x[num]
    return func

x = wrapper(0)

def f():
    t = (1, 2, 3)
    for _ in range(10000000):
        x(t)

f()

----------
messages: 4968
nosy: fijal, pypy-issue
priority: performance bug
status: unread
title: fix the namedtuple slowness

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1316>
________________________________________


More information about the pypy-issue mailing list