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

Apache Spark commented on SPARK-3135:
-------------------------------------

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

> Avoid memory copy in TorrentBroadcast serialization
> ---------------------------------------------------
>
>                 Key: SPARK-3135
>                 URL: https://issues.apache.org/jira/browse/SPARK-3135
>             Project: Spark
>          Issue Type: Sub-task
>            Reporter: Reynold Xin
>              Labels: starter
>
> TorrentBroadcast.blockifyObject uses a ByteArrayOutputStream to serialize 
> broadcast object into a single giant byte array, and then separates it into 
> smaller chunks.  We should implement a new OutputStream that writes 
> serialized bytes directly into chunks of byte arrays so we don't need the 
> extra memory copy.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to