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: More efficient row encoding for pl.List #19907

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

coastalwhite
Copy link
Collaborator

@coastalwhite coastalwhite commented Nov 21, 2024

This changes the row-encoding of the pl.List to be marked with continuation and termination bytes instead of as a variable encoding. This removes the need for an intermediate buffer, allows empty encodings (e.g. pl.Null) and generally makes the encoding more compact and efficient.

Continuation of #19874.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Nov 21, 2024
@coastalwhite coastalwhite force-pushed the perf/row-encoding-lists branch from d32c989 to b408536 Compare November 22, 2024 16:02
@coastalwhite coastalwhite marked this pull request as ready for review November 22, 2024 20:53
@coastalwhite coastalwhite force-pushed the perf/row-encoding-lists branch from c3bc614 to 8fdb32e Compare November 22, 2024 20:55
This changes the row-encoding of the `pl.List` to be marked with `continuation`
and `termination` bytes instead of as a variable encoding. This removes the
need for an intermediate buffer, allows empty encodings (e.g. `pl.Null`) and
generally makes the encoding more compact and efficient.

[skip ci]
@ritchie46 ritchie46 force-pushed the perf/row-encoding-lists branch from 8fdb32e to 5b7ff01 Compare November 23, 2024 09:58
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 89.91597% with 12 lines in your changes missing coverage. Please review.

Project coverage is 79.45%. Comparing base (5eeb369) to head (5b7ff01).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-row/src/decode.rs 76.92% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19907      +/-   ##
==========================================
- Coverage   79.49%   79.45%   -0.05%     
==========================================
  Files        1555     1555              
  Lines      216213   216140      -73     
  Branches     2456     2456              
==========================================
- Hits       171872   171725     -147     
- Misses      43783    43857      +74     
  Partials      558      558              

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


🚨 Try these New Features:

@ritchie46 ritchie46 merged commit 05f2abb into pola-rs:main Nov 23, 2024
25 checks passed
@coastalwhite coastalwhite deleted the perf/row-encoding-lists branch November 23, 2024 14:30
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.

2 participants