gh-139871: Optimize small takes in bytearray.take_bytes by cmaloney · Pull Request #141741 · python/cpython
When less than half the buffer is taken just copy that small part out rather than doing a big alloc + memmove + big shrink.
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request
…GH-141741) When less than half the buffer is taken just copy that small part out rather than doing a big alloc + memmove + big shrink.
ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request
…GH-141741) When less than half the buffer is taken just copy that small part out rather than doing a big alloc + memmove + big shrink.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters