wForget opened a new pull request, #2732:
URL: https://github.com/apache/uniffle/pull/2732

   ### What changes were proposed in this pull request?
   
   Support converting CompositeByteBuf to a direct nio buffer
   
   ### Why are the changes needed?
   
   CompositeByteBuf.nioBuffer will return a heap buffer if the composite buffer 
has more than one component, even if all components are direct buffers. In 
native client scenarios (like gluten), we prefer to use direct buffer to reduce 
data copying.
   
   ### Does this PR introduce _any_ user-facing change?
   
   yes, a new configuration
   
   ### How was this patch tested?
   
   Tested it locally, after adding the following configuration, the gluten 
shuffle reader will use LowCopyNettyJniByteInputStream.
   
   ```
   spark.executorEnv.RSS_NETTY_PREFER_DIRECT_FOR_COMPOSITE_BUFFER=true
   ```


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