Message198657
> 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.
Increasing an index requires that you compact the bytearray from time to
time, lest it fills the whole memory. |
|
Date |
User |
Action |
Args |
2013-09-29 21:51:15 | pitrou | set | recipients:
+ pitrou, vstinner, serhiy.storchaka |
2013-09-29 21:51:14 | pitrou | link | issue19087 messages |
2013-09-29 21:51:14 | pitrou | create | |
|