Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-116621: Specialize list.extend for dict items #116888

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Mar 16, 2024

return -1;
}

// TODO: Don't start a garbage collection cycle when creating tuples
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't start GC when allocating objects (since 3.12)

Py_SET_SIZE(self, m + i);
return -1;
}
FT_ATOMIC_STORE_PTR_RELAXED(*dest, item);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want RELEASE here.

We probably want to do the same thing for the other list_extend functions.

@corona10 corona10 requested a review from colesbury March 19, 2024 01:05
@corona10 corona10 merged commit a3cf0fa into python:main Mar 19, 2024
35 of 36 checks passed
@corona10 corona10 deleted the gh-116621-final branch March 19, 2024 03:18
vstinner pushed a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

list(set) should be atomic in the free-threaded build
2 participants