[issue19087] bytearray front-slicing not optimized

Serhiy Storchaka report at bugs.python.org
Mon Sep 30 00:11:27 CEST 2013


Serhiy Storchaka added the comment:

> No, because PyByteArray_Resize() is always called afterwards to ensure
> that the buffer is resized when it gets below 50% usage.
>

I.e. the bytearray is compacted from time to time.

----------

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


More information about the Python-bugs-list mailing list