Skip to content

Comments

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

Merged
Icxolu merged 2 commits intoPyO3:mainfrom
bschoenmaeckers:optimize-iter-last
Feb 19, 2025
Merged

Optimize Iterator::last() for PyList & PyTuple and Iterator::count() for PyDict, PyList, PyTuple & PySet#4878
Icxolu merged 2 commits intoPyO3:mainfrom
bschoenmaeckers:optimize-iter-last

Conversation

@bschoenmaeckers
Copy link
Member

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
Member

@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
Member

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
Member Author

Added some tests

@Icxolu
Copy link
Member

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