You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Bryński (JIRA)" <ji...@apache.org> on 2017/09/15 15:25:00 UTC
[jira] [Commented] (SPARK-22029) Cache of
_parse_datatype_json_string function
[ https://issues.apache.org/jira/browse/SPARK-22029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168017#comment-16168017 ]
Maciej Bryński commented on SPARK-22029:
----------------------------------------
I did a proof of concept with functools.lru_cache.
But this function is only for Python >= 3.2.
Any ideas for Python 2.x ?
> Cache of _parse_datatype_json_string function
> ---------------------------------------------
>
> Key: SPARK-22029
> URL: https://issues.apache.org/jira/browse/SPARK-22029
> Project: Spark
> Issue Type: Sub-task
> Components: PySpark
> Affects Versions: 2.2.0
> Reporter: Maciej Bryński
>
> _parse_datatype_json_string is called many times with the same arguments.
> Cacheing this calls can dramatically speed up pyspark code execution (up to 20%)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org