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

refactor(rust): Minor CSV bit twiddle nitpick #19121

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

orlp
Copy link
Collaborator

@orlp orlp commented Oct 7, 2024

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels Oct 7, 2024
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.80%. Comparing base (018dfd1) to head (5e4162f).
Report is 48 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19121      +/-   ##
==========================================
- Coverage   79.81%   79.80%   -0.01%     
==========================================
  Files        1531     1531              
  Lines      208576   208596      +20     
  Branches     2913     2913              
==========================================
+ Hits       166466   166470       +4     
- Misses      41559    41575      +16     
  Partials      551      551              

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

let has_any = has_separator | has_eol_char;
let has_eol_char = simd_bytes.simd_eq(self.simd_eol_char);
let has_separator = simd_bytes.simd_eq(self.simd_separator);
let has_any_mask = (has_separator | has_eol_char).to_bitmask();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You rather do that on the SIMD lane than the u64?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, to_bitmask is a bit more expensive on ARM, so I'd rather do that only once.

@ritchie46 ritchie46 merged commit 2d6bb94 into pola-rs:main Oct 7, 2024
20 of 21 checks passed
@c-peters c-peters added the accepted Ready for implementation label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants