Skip to content
Snippets Groups Projects
Commit 3ce3a282 authored by Liwei Lin's avatar Liwei Lin Committed by Sean Owen
Browse files

[SPARK-17359][SQL][MLLIB] Use ArrayBuffer.+=(A) instead of...

[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

Author: Liwei Lin <lwlin7@gmail.com>

Closes #14914 from lw-lin/append_to_plus_eq_v2.
parent 9fccde4f
No related branches found
No related tags found
No related merge requests found
Showing
with 51 additions and 52 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment