]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38373: Change list overallocating strategy. (GH-18952)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Mar 2020 21:46:00 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 21:46:00 +0000 (23:46 +0200)
commit2fe815edd6778fb9deef8f8044848647659c2eb8
treec22add59ac05b77cbc9b767f18b0d54768e8b463
parentd469d666b874ae746ca9a17bbfc9dbbf6fb2d6bc
bpo-38373: Change list overallocating strategy. (GH-18952)

* Add padding to make the allocated size multiple of 4.
* Do not overallocate if the new size is closer to overalocated size
  than to the old size.
Misc/NEWS.d/next/Core and Builtins/2020-03-11-12-28-16.bpo-38373.FE9S21.rst [new file with mode: 0644]
Objects/listobject.c