spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-12060) Avoid memory copy in JavaSerializerInstance.serialize
Date Mon, 07 Dec 2015 03:01:10 GMT

    [ https://issues.apache.org/jira/browse/SPARK-12060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15044304#comment-15044304
] 

Apache Spark commented on SPARK-12060:
--------------------------------------

User 'zsxwing' has created a pull request for this issue:
https://github.com/apache/spark/pull/10167

> Avoid memory copy in JavaSerializerInstance.serialize
> -----------------------------------------------------
>
>                 Key: SPARK-12060
>                 URL: https://issues.apache.org/jira/browse/SPARK-12060
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>            Priority: Critical
>
> 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


Mime
View raw message