GitHub user eatoncys opened a pull request:

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

    [SPARK-21017][sql]Move the length getter before the while to improve 
performance

    ## What changes were proposed in this pull request?
    
    In my test, the cost of the while in the write function of HiveOutputWriter 
class have improved from 48ms to 40ms for a table of 500 rows and 100 columns 
when putting the length getter before the while 
    
    ## How was this patch tested?
    Run the UT test
    
    


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

    $ git pull https://github.com/eatoncys/spark length

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

    https://github.com/apache/spark/pull/18240.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 #18240
    
----
commit bcb3ffa26fe14ac0702f091e11e9c682261fc81f
Author: 10129659 <chen.yans...@zte.com.cn>
Date:   2017-06-08T08:52:09Z

    Move the length getter before the while to improve performance

----


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