Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
proton-c-0.39.0
-
None
-
None
Description
Currently the only optimization in defrag is a check in rotate to do skip memory copies if the rotation amount is zero. Otherwise, the full capacity is rotated one byte at a time, even if there is only one byte of content.
Propose to check if the data in the buffer is currently contiguous and only move actual content via memmove.