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: speed up offset_by when a single offset is passed #15493

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

MarcoGorelli
Copy link
Collaborator

@MarcoGorelli MarcoGorelli commented Apr 5, 2024

closes #15482

this is my fault, from a commit I'd added to: https://github.com/pola-rs/polars/pull/9967/files 😳 🤦

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Apr 5, 2024
@MarcoGorelli MarcoGorelli changed the title perf: speed up offset_by 5x when a single offset is passed perf: speed up offset_by when a single offset is passed Apr 5, 2024
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.14%. Comparing base (31df06d) to head (d0df3de).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15493   +/-   ##
=======================================
  Coverage   81.14%   81.14%           
=======================================
  Files        1362     1362           
  Lines      174951   174953    +2     
  Branches     2533     2533           
=======================================
+ Hits       141960   141973   +13     
+ Misses      32508    32496   -12     
- Partials      483      484    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 87b84c9 into pola-rs:main Apr 6, 2024
19 checks passed
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 rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offset_by is about 4 times slower in polars compared to pandas' counterpart
2 participants