You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bytearray is highly optimized for appending to the right and removing from the left.
On resizing it keeps up to 50% free space at the begin of buffer before performing a memory reallocation.
The text was updated successfully, but these errors were encountered:
bytearray is doing a great work on appending to the right, but removing from left and resizing? I don't understand. pop(0) is the same with lists
memoryview does not support resizing either.
@asvetlov Read the function for 2 hrs, did a lot of search, and failed to understand. I hope I can read C code one day. I won't bother you anymore then.
bytearray
is highly optimized for appending to the right and removing from the left.On resizing it keeps up to 50% free space at the begin of buffer before performing a memory reallocation.
The text was updated successfully, but these errors were encountered: