You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2014/08/14 22:42:18 UTC
[jira] [Updated] (SPARK-3047) add an option to use str in
textFileRDD()
[ https://issues.apache.org/jira/browse/SPARK-3047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davies Liu updated SPARK-3047:
------------------------------
Summary: add an option to use str in textFileRDD() (was: Use utf-8 for textFile() by default)
> 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
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org