Joe Jevnik added the comment:

# Original version / new python implementation
./python -m timeit -s "from collections import namedtuple;a = namedtuple('a', 
'a b c')(1, 2, 3)" "a.a"
10000000 loops, best of 3: 0.07 usec per loop


# C implementation
./python -m timeit -s "from collections import namedtuple;a = namedtuple('a', 
'a b c')(1, 2, 3)" "a.a"
10000000 loops, best of 3: 0.028 usec per loop


The fallback is the same implementation that is currently used so this should 
have no affect on pypi.

----------
Added file: http://bugs.python.org/file38905/namedtuple-indexer-update.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23910>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to