[issue10227] Improve performance of MemoryView slicing

Antoine Pitrou report at bugs.python.org
Thu Feb 3 14:32:51 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> I find it interesting that the base line is way below the other
> timings. That makes me think it's actually worth caching constant
> slice instances, as CPython already does for tuples.

Indeed. I have never touched it, but I suppose it needs an upgrade of
the marshal format to support slices.
(of course, this will not help for other common cases such as l[x:x+2]).

----------

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


More information about the Python-bugs-list mailing list