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: Zerocopy buffers for FixedSizeBinary to BinaryView cast #18043

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

coastalwhite
Copy link
Collaborator

This is still not perfect because the code-generation for View::new_inline_unchecked is absolutely horrible, but that can be addressed in a later PR.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Aug 4, 2024
@coastalwhite coastalwhite marked this pull request as draft August 4, 2024 22:05
@coastalwhite coastalwhite marked this pull request as ready for review August 5, 2024 07:52
@ritchie46
Copy link
Member

Nice observation. Do we cast from fixed size binary in parquet? Or only on entrance from arrow?

@coastalwhite
Copy link
Collaborator Author

This is called when we make the Parquet array match the type given in the arrow schema. It would be more efficient to do this in the decoder itself, but that would require a lot of code duplication and increase binary size.

@ritchie46 ritchie46 merged commit fd00ee6 into pola-rs:main Aug 5, 2024
22 checks passed
@coastalwhite coastalwhite deleted the zerocpy-binary-fsl-cast branch August 5, 2024 09:03
@c-peters c-peters added the accepted Ready for implementation label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants