GitHub user sitalkedia opened a pull request:

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

    [SPARK-17839][CORE] UnsafeSorterSpillReader should use Nio's directbuffer 
to read the spill files in order to avoid additional copy

    ## What changes were proposed in this pull request?
    
    Currently we use BufferedInputStream to read the shuffle file which copies 
the file content from os buffer cache to the user buffer. This adds additional 
latency in reading the spill files. We made a change to use java nio's direct 
buffer to read the spill files and for certain jobs spilling significant amount 
of data, we see up to 7% speedup.
    
    ## How was this patch tested?
    Tested by running the job in the cluster and observed up to 7% speedup.


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

    $ git pull https://github.com/sitalkedia/spark skedia/nio_spill_read

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

    https://github.com/apache/spark/pull/15408.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 #15408
    
----
commit bd741fa0bfebf7d837ee46aed1f63c8dcbfc717b
Author: Sital Kedia <[email protected]>
Date:   2016-10-09T18:02:33Z

    [SPARK-17839][CORE] UnsafeSorterSpillReader should use Nio's directbuffer 
to read the spill files in order to avoid additional copy

----


---
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]

Reply via email to