GitHub user sitalkedia opened a pull request:

    https://github.com/apache/spark/pull/17343

    [SPARK-20014] Optimize mergeSpillsWithFileStream method

    ## What changes were proposed in this pull request?
    
    When the individual partition size in a spill is small, 
mergeSpillsWithTransferTo method does many small disk ios which is really 
inefficient. One way to improve the performance will be to use 
mergeSpillsWithFileStream method by turning off transfer to and using buffered 
file read/write to improve the io throughput. 
    However, the current implementation of mergeSpillsWithFileStream does not 
do a buffer read/write of the files and in addition to that it unnecessarily 
flushes the output files for each partitions.
    
    ## How was this patch tested?
    
    Unit tests


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sitalkedia/spark 
upstream_mergeSpillsWithFileStream

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17343.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 #17343
    
----
commit e9ac76edb055d08699d9de7a5ff77b7ca8a7f5c6
Author: Sital Kedia <ske...@fb.com>
Date:   2017-03-19T00:24:10Z

    [SPARK-20014] Optimize mergeSpillsWithFileStream method

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to