diff options
author | carlmartin <carlmartinmax@gmail.com> | 2014-12-22 12:13:53 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2014-12-22 12:14:33 -0800 |
commit | c7396b5887afe1bbe344ffcf06ef266847c378ac (patch) | |
tree | ba1a1bc6e06c12f63924fbfba5548655fb773706 /network | |
parent | 70e69ef7b5005e5b4aa5160c41829fabe95bd092 (diff) | |
download | spark-c7396b5887afe1bbe344ffcf06ef266847c378ac.tar.gz spark-c7396b5887afe1bbe344ffcf06ef266847c378ac.tar.bz2 spark-c7396b5887afe1bbe344ffcf06ef266847c378ac.zip |
[Minor] Improve some code in BroadcastTest for short
Using
val arr1 = (0 until num).toArray
instead of
val arr1 = new Array[Int](num)
for (i <- 0 until arr1.length) {
arr1(i) = i
}
for short.
Author: carlmartin <carlmartinmax@gmail.com>
Closes #3750 from SaintBacchus/BroadcastTest and squashes the following commits:
43adb70 [carlmartin] Improve some code in BroadcastTest for short
Diffstat (limited to 'network')
0 files changed, 0 insertions, 0 deletions