alamb commented on issue #6670: URL: https://github.com/apache/arrow-rs/issues/6670#issuecomment-2455616628
> I used https://docs.rs/arrow/latest/arrow/record_batch/struct.RecordBatch.html#method.get_array_memory_size to estimate the size of the `arrow_data` vec in `record_batch_to_bytes` -- and initialized the vec with `Vec::with_capacity(array_memory_size)`. This would likely overestimate the size of the arrow_data vector created, hence not be optimal for memory consumption, but that's beside the point. Thank you @vichry2 -- is this something we could make a PR in arrow-rs to improve? Or maybe add a documentation example or something? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
