Github user tianyi commented on the pull request:
https://github.com/apache/spark/pull/3375#issuecomment-64316338
I made some optimization for the performance. Here is the result:
the test data is generated by the following script
generator.sh
```
for((i=1;i<=$1;i++))
do
echo $i",abcdefghijklmn"
done
```
benchmark codes:
https://gist.github.com/tianyi/7b61e1195b5d5e1fdb1f
for
table test_csv contain 1 million records
table dim_csv contain 10 thousand records
the result is:
master:
```
CSV: 12671 ms
CSV: 9021 ms
CSV: 9200 ms
Current Mem Usage:787788984
```
after patchï¼
```
CSV: 10382 ms
CSV: 7543 ms
CSV: 7469 ms
Current Mem Usage:208145728
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]