Mercurial > cpython-lru_cache-weakref
diff Include/bytesobject.h @ 38115:a6a1359aab84
Optimizations for bytes reallocation.
This uses up to 12.5% overallocation, not entirely unlike list_resize().
Could probably use more tweaks for odd allocation patterns, TBD.
Also add __alloc__() method which returns the actually allocated size.
PS. I'm now convinced that we need something like "".join(); later.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 05 May 2006 04:34:18 +0000 |
| parents | e0b7e34b5971 |
| children | d1c3dd184e38 |
line wrap: on
line diff
