You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Norman Maurer (JIRA)" <ji...@apache.org> on 2018/08/14 17:12:00 UTC

[jira] [Created] (SPARK-25115) Eliminate extra memory copy done when a ByteBuf is used that is backed by > 1 ByteBuffer.

Norman Maurer created SPARK-25115:
-------------------------------------

             Summary:     Eliminate extra memory copy done when a ByteBuf is used that is backed by > 1 ByteBuffer.
                 Key: SPARK-25115
                 URL: https://issues.apache.org/jira/browse/SPARK-25115
             Project: Spark
          Issue Type: Improvement
          Components: Input/Output
    Affects Versions: 2.3.1
            Reporter: Norman Maurer


Calling ByteBuf.nioBuffer(...) can be costly when the ByteBuf is backed by more then 1 ByteBuf. In this case it makes more sense to call ByteBuf.nioBuffers(...) and iterate over the returned ByteBuffer[].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org