summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2022-01-08 03:47:58 (GMT)
committerGitHub <noreply@github.com>2022-01-08 03:47:58 (GMT)
commitad1d5908ada171eff768291371a80022bfad4f04 (patch)
tree040c1e3391995791c8114ea62c911756ad824c68 /Python/thread.c
parent6fa8b2ceee38187b0ae96aee12fe4f0a5c8a2ce7 (diff)
downloadcpython-ad1d5908ada171eff768291371a80022bfad4f04.zip
cpython-ad1d5908ada171eff768291371a80022bfad4f04.tar.gz
cpython-ad1d5908ada171eff768291371a80022bfad4f04.tar.bz2
bpo-46235: Do all ref-counting at once during list/tuple multiplication (GH-30346)
When multiplying lists and tuples by `n`, increment each element's refcount, by `n`, just once. Saves `n-1` increments per element, and allows for a leaner & faster copying loop. Code by sweeneyde (Dennis Sweeney).
Diffstat (limited to 'Python/thread.c')
0 files changed, 0 insertions, 0 deletions