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/03/31 12:29:46 UTC

[GitHub] [arrow-rs] HaoYang670 opened a new issue #1511: Speed up the `substring` kernel

HaoYang670 opened a new issue #1511:
URL: https://github.com/apache/arrow-rs/issues/1511


   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/substring.rs#L44
   ```rust
       let mut new_values = MutableBuffer::new(0); // we have no way to estimate how much this will be.
   ```
   We can estimate the memory we need by firstly calculating the length of each substring. This can improve the performance because we don't need to reallocate memory when building buffer.
   


-- 
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