You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/12/01 01:18:11 UTC

[jira] [Assigned] (SPARK-12060) Avoid memory copy in JavaSerializerInstance.serialize

     [ https://issues.apache.org/jira/browse/SPARK-12060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Apache Spark reassigned SPARK-12060:
------------------------------------

    Assignee: Apache Spark

> Avoid memory copy in JavaSerializerInstance.serialize
> -----------------------------------------------------
>
>                 Key: SPARK-12060
>                 URL: https://issues.apache.org/jira/browse/SPARK-12060
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Shixiong Zhu
>            Assignee: Apache Spark
>
> JavaSerializerInstance.serialize uses ByteArrayOutputStream.toByteArray to get the serialized data. ByteArrayOutputStream.toByteArray needs to copy the content in the internal array to a new array. However, since the array will be converted to ByteBuffer at once, we can avoid the memory copy.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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