Replace checked casts with as
for performance
#1918
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
performance
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There are places in the code where checked casts are used (e.g.
try_into().unwrap()
) where the only codepath that leads to this panic are invalid array data, which the code goes through great lengths to avoid (viavalidate
andvalidate_full
).Describe the solution you'd like
try_into
for such cases with anas
castDescribe alternatives you've considered
N/A
Additional context
suggested by @tustvold here: https://github.com/apache/arrow-rs/pull/1912/files#r901284237
The text was updated successfully, but these errors were encountered: