New submission from Brian Kearns <[email protected]>:

$ python -m timeit -n 10000 -s "a = '1'*5000" "tuple(a)"
10000 loops, best of 3: 47.3 usec per loop
$ ./pypy-c -m timeit -n 10000 -s "a = '1'*5000" "tuple(a)"
10000 loops, best of 3: 129 usec per loop
$ python -m timeit -n 10000 -s "a = '1'*5000" "list(a)"
10000 loops, best of 3: 48.2 usec per loop
$ ./pypy-c -m timeit -n 10000 -s "a = '1'*5000" "list(a)"
10000 loops, best of 3: 157 usec per loop

----------
messages: 5507
nosy: bdk, pypy-issue
priority: performance bug
status: unread
title: tuple/list creation is very slow in some cases

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1433>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to