Browse Source
Not great to use a 'bytes' object as a FIFO buffer, as every slice copies the whole thing.
With bytearray, extending it from the right is fast,
and with the correct syntax, popping from the left is fast too.
see https://stackoverflow.com/a/57748513
https://bugs.python.org/issue19087
5df8a8a1fd
patch-4
SomberNight
4 years ago
1 changed files with 7 additions and 7 deletions
Loading…
Reference in new issue