ritchie46 commented on pull request #9572: URL: https://github.com/apache/arrow/pull/9572#issuecomment-786141749
I use an wrapper type that is basically a Rust `Vec` combined with an arrow alloctor. [AlignedVec](https://github.com/ritchie46/polars/blob/06864d5135d4dd133fe496a9cc7e99681dbb9577/polars/polars-arrow/src/vec.rs#L12). Because this is typed and has the same API as `Vec` I found this easier to work with. It is used for instance in [FromIterator](https://github.com/ritchie46/polars/blob/06864d5135d4dd133fe496a9cc7e99681dbb9577/polars/polars-core/src/chunked_array/upstream_traits.rs#L63) to build a `ChunkedArray` (a wrapper around an arrow array) when I know I don't have null types. When I don't have null values or I can just use an existing null buffer the `AlignedVec` is more performant for my case. ---------------------------------------------------------------- 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]
