GitHub user maver1ck opened a pull request:
https://github.com/apache/spark/pull/19255
[WIP][SPARK-22029] Add lru_cache to _parse_datatype_json_string
## What changes were proposed in this pull request?
_parse_datatype_json_string is called many times for the same datatypes.
By cacheing its result we can speed up pySpark internals.
## How was this patch tested?
Existing tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maver1ck/spark spark_22029
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19255.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19255
----
commit c903860ee8d25afda0f969b582bdbdaa0aa8c9fe
Author: Maciej BryÅski <[email protected]>
Date: 2017-09-16T18:51:49Z
Add lru_cache to _parse_datatype_json_string
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]