Dandandan opened a new issue #279: URL: https://github.com/apache/arrow-rs/issues/279
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** Currently `maybe_usize` and `try_from_trusted_len_iter` are used for the `take` kernel. It seems we could do better for `u32`, `i32`, and `u64`/ `i64` (for >64 bit architecture) as we can cast to `usize` directly. **Describe the solution you'd like** Specialize on aforementioned types to avoid overhead of the slow path. **Describe alternatives you've considered** Implementating/exposing a specialized function for the types. **Additional context** -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org