GitHub user lw-lin opened a pull request:

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

    [SPARK-17359][SQL][MLLib] Use ArrayBuffer.+=(A) instead of 
ArrayBuffer.append(A) in performance critical paths

    ## What changes were proposed in this pull request?
    
    We should generally use `ArrayBuffer.+=(A)` rather than 
`ArrayBuffer.append(A)`, because `append(A)` would involve extra boxing / 
unboxing.
    
    ## How was this patch tested?
    
    N/A
    


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

    $ git pull https://github.com/lw-lin/spark append_to_plus_eq_v2

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

    https://github.com/apache/spark/pull/14914.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 #14914
    
----
commit fba1c5e430f90163cc10266812f2a0137d012be3
Author: Liwei Lin <[email protected]>
Date:   2016-08-15T02:56:58Z

    append -> +=

----


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