You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/06/21 12:42:30 UTC

[GitHub] [arrow-rs] alamb opened a new issue, #1918: Replace checked casts with `as` for performance

alamb opened a new issue, #1918:
URL: https://github.com/apache/arrow-rs/issues/1918

   **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 (via `validate` and `validate_full`).
   
   
   **Describe the solution you'd like**
   1. replace `try_into` for such cases with an `as` cast
   2. Run performance benchmarks and see if it improves things (and make a PR if so)
   
   **Describe alternatives you've considered**
   N/A 
   
   **Additional context**
   suggested by @tustvold  here: https://github.com/apache/arrow-rs/pull/1912/files#r901284237
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold closed issue #1918: Replace checked casts with `as` for performance

Posted by GitBox <gi...@apache.org>.
tustvold closed issue #1918: Replace checked casts with `as` for performance
URL: https://github.com/apache/arrow-rs/issues/1918


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org