[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org