EmilyMatt opened a new pull request, #10833: URL: https://github.com/apache/arrow-rs/pull/10833
Currently we have to allocate twice when compressing using zstd - once to a temporary vec, which is the output from the compress(input) call, and then extend our output buffer with extend_from_slice which causes another realloc(especially if writing a large buffer) instead we can use the zstd compress_to_buffer function directly, which is what the compress() call does anyway. -- 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]
