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

Optimize Iterator::last() for PyList & PyTuple and Iterator::count() for PyDict, PyList, PyTuple & PySet #4878

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

bschoenmaeckers
Copy link
Contributor

Complements #4810

Part of #4787

@bschoenmaeckers bschoenmaeckers force-pushed the optimize-iter-last branch 3 times, most recently from 0e09836 to cbdca14 Compare January 29, 2025 09:53
@bschoenmaeckers bschoenmaeckers changed the title Optimize Iterator:last() for PyList & PyTuple Optimize Iterator::last() for PyList & PyTuple Jan 29, 2025
@bschoenmaeckers bschoenmaeckers changed the title Optimize Iterator::last() for PyList & PyTuple Optimize Iterator::last() for PyList & PyTuple and Iterator::count() for PyDict, PyList, PyTuple & PySet Jan 29, 2025
Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. Maybe you can rebase this to include #4879, which should fix the CI failures.

@Icxolu
Copy link
Contributor

Icxolu commented Feb 15, 2025

Maybe we can extend/modify the tests a bit to get some coverage on these new implementations?

@bschoenmaeckers
Copy link
Contributor Author

Added some tests

@Icxolu
Copy link
Contributor

Icxolu commented Feb 19, 2025

Great, thank you very much 🚀

@Icxolu Icxolu added this pull request to the merge queue Feb 19, 2025
Merged via the queue into PyO3:main with commit da3e37e Feb 19, 2025
47 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants