Skip to content

Commit

Permalink
Use atoi_simd
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Feb 14, 2024
1 parent a36bb77 commit ef5e05d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arrow-cast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ chrono = { workspace = true }
half = { version = "2.1", default-features = false }
num = { version = "0.4", default-features = false, features = ["std"] }
lexical-core = { version = "^0.8", default-features = false, features = ["write-integers", "write-floats", "parse-integers", "parse-floats"] }
atoi_simd = "0.15.6"
comfy-table = { version = "7.0", optional = true, default-features = false }
base64 = "0.21"

Expand Down
2 changes: 1 addition & 1 deletion arrow-cast/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ macro_rules! parser_primitive {
($t:ty) => {
impl Parser for $t {
fn parse(string: &str) -> Option<Self::Native> {
string.parse::<Self::Native>().ok()
atoi_simd::parse(string.as_bytes()).ok()
}
}
};
Expand Down

0 comments on commit ef5e05d

Please sign in to comment.