[issue10227] Improve performance of MemoryView slicing
Stefan Behnel
report at bugs.python.org
Thu Feb 3 14:22:02 CET 2011
Stefan Behnel <scoder at users.sourceforge.net> added the comment:
Here's another base line test: slicing an empty list
patched:
$ ./python -m timeit -s 'l = []' 'l[:]'
10000000 loops, best of 3: 0.0847 usec per loop
original:
$ ./python -m timeit -s 'l = []' 'l[:]'
10000000 loops, best of 3: 0.0977 usec per loop
That's about 13% less overhead.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10227>
_______________________________________
More information about the Python-bugs-list
mailing list