cxzl25 commented on PR #47733:
URL: https://github.com/apache/spark/pull/47733#issuecomment-2303618502

   I also found another one, which uses `Platform.allocateDirectBuffer` when 
initializing, but uses `ByteBuffer.allocateDirect` when growing.
   
   We can do this in another PR.
   
   
https://github.com/apache/spark/blob/4ceacbe862dd17786bd21a583ca02e804f13cb1d/core/src/main/scala/org/apache/spark/util/DirectByteBufferOutputStream.scala#L31-L32
   
   
https://github.com/apache/spark/blob/4ceacbe862dd17786bd21a583ca02e804f13cb1d/core/src/main/scala/org/apache/spark/util/DirectByteBufferOutputStream.scala#L60-L63


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to