SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

bpo-38891: avoid quadratic item access performance of ShareableList (GH-18996)

Avoid linear runtime of ShareableList.__getitem__ and
ShareableList.__setitem__ by storing running allocated bytes in
ShareableList._allocated_bytes instead of the number of bytes for
a particular stored item.

Co-authored-by: Antoine Pitrou <antoine@python.org>
T
Thomas Krennwallner committed
c8f1715283ec51822fb37a702bf253cbac1af276
Parent: 1ac6e37
Committed by GitHub <noreply@github.com> on 4/19/2020, 3:19:24 PM