liupc opened a new pull request #23602: [SPARK-26674]Consolidate 
CompositeByteBuf when reading large frame
URL: https://github.com/apache/spark/pull/23602
 
 
   ## What changes were proposed in this pull request?
   
   Currently, TransportFrameDecoder will not consolidate the buffers read from 
network which may cause memory waste. Actually, bytebuf's writtenIndex is far 
less than it's capacity  in most cases, so we can optimize it by doing 
consolidation.
   
   This PR will do this optimization.
   
   Related codes:
   
https://github.com/apache/spark/blob/9a30e23211e165a44acc0dbe19693950f7a7cc73/common/network-common/src/main/java/org/apache/spark/network/util/TransportFrameDecoder.java#L143
   
   ## How was this patch tested?
   
   UT
   
   Please review http://spark.apache.org/contributing.html before opening a 
pull request.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to