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

Update arrow and prepare for mutable arithmetics #3695

Merged
merged 6 commits into from
Jun 15, 2022
Merged

Conversation

ritchie46
Copy link
Member

This updates arrow and refactors the ArrayRef from Arc<dyn Array> to Box<dyn Array>. The buffers holding the data remain Arced.

This will make it easier to benefit from our new mutable writer opportunities. See: jorgecarleitao/arrow2#1042 for more info on this topic.

Additional benefit. I noticed during refactoring that we call ListArray::from_data very often which does an O(n) data check on the offsets.

This is now replaced with ListArray::new_unchecked making the call O(1). This likely is a perf improvement on many groupby operations.

@github-actions github-actions bot added python Related to Python Polars rust Related to Rust Polars labels Jun 14, 2022
@ritchie46 ritchie46 mentioned this pull request Jun 15, 2022
@ritchie46 ritchie46 merged commit 19bbcd5 into master Jun 15, 2022
@ritchie46 ritchie46 deleted the update_arrow branch June 15, 2022 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant