[issue19087] bytearray front-slicing not optimized

Serhiy Storchaka report at bugs.python.org
Sun Sep 29 23:49:43 CEST 2013


Serhiy Storchaka added the comment:

Deleting a slice at the front of a bytearray have linear complexity from the size of a bytearray (in any case del b[:1] is a little faster than b[:1] = b''). I doubt than any performance critical code do it instead of increasing an index in constant time.

----------

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


More information about the Python-bugs-list mailing list