ritchie46 opened a new pull request #269:
URL: https://github.com/apache/arrow-rs/pull/269


   Issue  #268
   
   @alamb , we discussed this earlier. Sorry that it took a while to bring it 
in. 
   
   This PR proposes an utility type `AlignedVec<T>`, which is a hybrid between 
Rust standard `Vec<T>` and Arrow's memory allocator. This is used in Polars 
quite often because of performance reasons and the ease of use of the 
`Vec<T>`'s API.
   
   I also added an example of this structs usage in the [substring 
kernel](arrow/src/compute/kernels/substring.rs). There we did a redundant copy 
by first writing to a `Vec<T>` and then copying to a new `Buffer`. With this 
struct this copy is skipped.
   


-- 
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:
[email protected]


Reply via email to