Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-40327: Improve atomicity speed and memory efficiency of the items() loop#19628

Merged
rhettinger merged 1 commit intopython:masterpython/cpython:masterfrom
rhettinger:better_itemsrhettinger/cpython:better_itemsCopy head branch name to clipboard
Apr 21, 2020
Merged

bpo-40327: Improve atomicity speed and memory efficiency of the items() loop#19628
rhettinger merged 1 commit intopython:masterpython/cpython:masterfrom
rhettinger:better_itemsrhettinger/cpython:better_itemsCopy head branch name to clipboard

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Apr 20, 2020

This isn't a complete solution to the OP's problem, but it does mitigate the race condition risk, and it also improves memory efficiency and speed.

https://bugs.python.org/issue40327

@serhiy-storchaka
Copy link
Member

👍

@rhettinger rhettinger merged commit 75bedbe into python:master Apr 21, 2020
@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 21, 2020
…ms() loop (pythonGH-19628)

(cherry picked from commit 75bedbe)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-bot
Copy link

GH-19640 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request May 22, 2020
…ms() loop (GH-19628)

(cherry picked from commit 75bedbe)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.