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

perf(python): remove PySequence downcast #6803

Merged
merged 1 commit into from
Feb 11, 2023
Merged

perf(python): remove PySequence downcast #6803

merged 1 commit into from
Feb 11, 2023

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Feb 11, 2023

The downcast was unneeded and was relatively expensive as it needed to check a lot. See: PyO3/pyo3#2943 (comment)

fixes #6791

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars labels Feb 11, 2023
@ritchie46 ritchie46 merged commit 8204c88 into master Feb 11, 2023
@ritchie46 ritchie46 deleted the seq branch February 11, 2023 10:22
@ritchie46 ritchie46 changed the title perf(python): remove pySequence downcast perf(python): remove PySequence downcast Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance issues or improvements python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression in polars.PySeries.new_opt_f64
1 participant