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

use ato_simd for fast &[u8] to int conversion #1423

Merged
merged 6 commits into from
Nov 18, 2023
Merged

use ato_simd for fast &[u8] to int conversion #1423

merged 6 commits into from
Nov 18, 2023

Conversation

jqnatividad
Copy link
Collaborator

  • faster than std::parse - SIMD accelerated and skips utf8 validation

now that Polars is also using it
- use atoi_simd for integer conversion, skipping utf8 validation altogether
- if number is not an int, use SIMD accelerated utf8 checking, and just use std::parse to get float
- if not float, just return None
@jqnatividad jqnatividad merged commit b5fae59 into master Nov 18, 2023
3 of 4 checks passed
@jqnatividad jqnatividad deleted the atoi_simd branch December 12, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant