karelpeeters
11/02/2018, 10:25 AMfor (i in 0 until 10 step 2) {
println(i)
}
This code is only partially optimized, there is still an allocation of both an IntRange
and an IntProgression
. This get worse when this loop is part of another loop, that means two useless allocations per iteration of the outer loop. Are there plans to optimize all of that away?gildor
11/02/2018, 10:27 AMkarelpeeters
11/02/2018, 10:31 AMkarelpeeters
11/02/2018, 10:32 AMlouiscad
11/02/2018, 10:33 AMkarelpeeters
11/02/2018, 10:36 AMlouiscad
11/02/2018, 10:37 AMilya.gorbunov
11/02/2018, 2:39 PMlouiscad
11/02/2018, 2:40 PMdmitry.petrov
11/02/2018, 2:55 PMkarelpeeters
11/02/2018, 3:52 PM