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

Apache Spark commented on SPARK-17930:
--------------------------------------

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

> The SerializerInstance instance used when deserializing a TaskResult is not 
> reused 
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-17930
>                 URL: https://issues.apache.org/jira/browse/SPARK-17930
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.6.1, 2.0.1
>            Reporter: Guoqiang Li
>
> The following code is called when the DirectTaskResult instance is 
> deserialized
> {noformat}
>   def value(): T = {
>     if (valueObjectDeserialized) {
>       valueObject
>     } else {
>       // Each deserialization creates a new instance of SerializerInstance, 
> which is very time-consuming
>       val resultSer = SparkEnv.get.serializer.newInstance()
>       valueObject = resultSer.deserialize(valueBytes)
>       valueObjectDeserialized = true
>       valueObject
>     }
>   }
> {noformat}



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

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

Reply via email to