Skip to content

Commit

Permalink
Improve some code in BroadcastTest for short
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintBacchus committed Dec 20, 2014
1 parent 1d64812 commit 43adb70
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ object BroadcastTest {
val slices = if (args.length > 0) args(0).toInt else 2
val num = if (args.length > 1) args(1).toInt else 1000000

val arr1 = new Array[Int](num)
for (i <- 0 until arr1.length) {
arr1(i) = i
}
val arr1 = (0 until num).toArray

for (i <- 0 until 3) {
println("Iteration " + i)
Expand Down

0 comments on commit 43adb70

Please sign in to comment.