gh-139871: Optimize small takes in bytearray.take_bytes (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.
C
Cody Maloney committed
e265ce8a563ba7f91c5ada0592de8cb85622b433
Parent: a35c683
Committed by GitHub <noreply@github.com>
on 11/20/2025, 7:49:05 AM