[
https://issues.apache.org/jira/browse/SPARK-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097639#comment-14097639
]
Apache Spark commented on SPARK-3047:
-------------------------------------
User 'davies' has created a pull request for this issue:
https://github.com/apache/spark/pull/1951
> add an option to use str in textFileRDD()
> -----------------------------------------
>
> Key: SPARK-3047
> URL: https://issues.apache.org/jira/browse/SPARK-3047
> Project: Spark
> Issue Type: Improvement
> Reporter: Davies Liu
> Assignee: Davies Liu
>
> In Python 2.x, most of the string are bytearray, it's more efficient then
> unicode (both cpu and memory).
> UTF-8 is the default encoding.
> After disable decode from utf8 into unicode in UTF8Deserializer, the total
> time for wc job is reduce by 32% (from 2m17s to 1m34s).
> We also could add argument unicode=False to textFile().
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]