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

Improve optimisation of "dict.pop()" #5911

Merged
merged 2 commits into from Dec 16, 2023
Merged

Conversation

scoder
Copy link
Contributor

@scoder scoder commented Dec 15, 2023

Use the new PyDict_Pop() function in Py3.13 and special-case the common "discard and ignore" use case.

tests/run/dict_pop.pyx Outdated Show resolved Hide resolved
@scoder scoder merged commit 12b43eb into cython:master Dec 16, 2023
63 checks passed
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.

None yet

2 participants