caigy commented on issue #8017:
URL: https://github.com/apache/rocketmq/issues/8017#issuecomment-2051403850

   `ByteStreams.toByteArray()` creates large array in memory and is 
unnecessary. It seems `FileChannel.transferFrom()` with NIO channel would be 
more efficient for writing streams to a file.


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

Reply via email to