diff options
author | Guido van Rossum <guido@python.org> | 2006-05-05 04:34:18 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-05-05 04:34:18 +0000 |
commit | e340a383c9c823d69905fc1937f4732fee875485 (patch) | |
tree | 1a75db4c2c936e566706548bc9ecd51ce0908699 /Python/Python-ast.c | |
parent | 490ff49aa36de2b65a09352c3049696ed82ff8e7 (diff) | |
download | cpython-e340a383c9c823d69905fc1937f4732fee875485.tar.gz |
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.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions