Derek Peirce
01/06/2020, 7:29 AMfun sequencesExample() {
sequence<Int> {
yield(5)
}.forEach { println(it) }
}
When I decompiled it, I ended up with a 11,113-line monstrosity that takes 8.84MB! And it doesn't appear that sequence
is even an inline function! What's going on here?E.Kisaragi
01/06/2020, 7:38 AMtseisel
01/06/2020, 7:52 AMsequence
function.
It shouldn't generate such a heavy binary though, I wrote an Android app that heavily uses coroutines and its whole size is low (most size is due to dependencies)jimn
01/06/2020, 9:15 AMtseisel
01/06/2020, 9:36 AMDerek Peirce
01/07/2020, 3:20 AM