You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shixiong Zhu (JIRA)" <ji...@apache.org> on 2016/10/18 20:47:58 UTC
[jira] [Resolved] (SPARK-17930) The SerializerInstance instance
used when deserializing a TaskResult is not reused
[ https://issues.apache.org/jira/browse/SPARK-17930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shixiong Zhu resolved SPARK-17930.
----------------------------------
Resolution: Fixed
Assignee: Guoqiang Li
Fix Version/s: 2.1.0
> 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
> Assignee: Guoqiang Li
> Fix For: 2.1.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org