[issue23910] C implementation of namedtuple (WIP)

Joe Jevnik report at bugs.python.org
Mon Apr 27 17:53:12 CEST 2015


Joe Jevnik added the comment:

I am currently on a different machine so these numbers are not relative to the others posted earlier.

* default
./python -m timeit -s "from collections import namedtuple as n;a = n('n', 'a b c')(1, 2, 3)" "a.a"
10000000 loops, best of 3: 0.0699 usec per loop

* patch
./python -m timeit -s "from collections import namedtuple as n;a = n('n', 'a b c')(1, 2, 3)" "a.a"
10000000 loops, best of 3: 0.0468 usec per loop

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23910>
_______________________________________


More information about the Python-bugs-list mailing list