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

Yin Huai updated SPARK-2603:
----------------------------

    Description: In JsonRDD.scalafy, we are using toMap/toList to convert a 
Java Map/List to a Scala one. These two operations are pretty expensive because 
they read elements from a Java Map/List and then load to a Scala Map/List. We 
can use Scala wrappers to wrap those Java collections instead of using 
toMap/toList.  (was: In JsonRDD.scalafy, we should use scala wrappers to wrap 
those Java collections instead of using toMap/toList to read elements from a 
Java Map/List and then load to a Scala Map/List.)

> Remove unnecessary toMap and toList in converting Java collections to Scala 
> collections JsonRDD.scala
> -----------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-2603
>                 URL: https://issues.apache.org/jira/browse/SPARK-2603
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Yin Huai
>            Assignee: Yin Huai
>            Priority: Minor
>
> In JsonRDD.scalafy, we are using toMap/toList to convert a Java Map/List to a 
> Scala one. These two operations are pretty expensive because they read 
> elements from a Java Map/List and then load to a Scala Map/List. We can use 
> Scala wrappers to wrap those Java collections instead of using toMap/toList.



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

Reply via email to