```for (i in 0 until 10 step 2) { println(i) }...
# language-proposals
k
Copy code
for (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?
g
This is not a language proposal, probably better to create an issue about this
1
k
Ah true, turns out there's even an existing issue for it: https://youtrack.jetbrains.net/issue/KT-18692
That's been in progress for 11 months, great.
😂 1
l
Commented about that fact
k
Haha thanks. I was going to complain that there are thousands of them but turns out there are only 117 in progress issues, neat! https://youtrack.jetbrains.net/issues/KT?q=%23%7BIn%20Progress%7D%20
👌 1
l
Then, the timer will show crazy amounts of time, and he will get a crazy overworking bonus 😅
💵 1
i
@louiscad we do not use work tracking timers. "In progress" means that the work has been started but is not finished yet.
👍 1
l
Thanks for the fact, definitely something I'll tell to my manager! 😅
d
You know how it happens. Optimizations always get deprioritized in favor of fixing bugs. We do accept pull requests, by the way.
k
Might look into that actually.