Hi, what do you mean by "effective"? Compose supports indy lambdas, but I don't think it is more efficient, especially on Android
c
Chachako
11/04/2024, 2:47 PM
Ah, yes, this is exactly what I wanted to ask. I'm not sure whether Compose itself would introduce any additional overhead to indy lambdas. My question is whether it would slow down indy lambdas or not; as long as it doesn't, that's good enough.
s
shikasd
11/04/2024, 2:49 PM
On Android it is effectively the same as non-indy, because it gets desugared into lambda classes by d8
On JVM, it might be more efficient
c
Chachako
11/04/2024, 2:52 PM
Got it. But my app's minimum supported version is Android O and desugaring is not enabled. Will this still be removed by R8?
s
shikasd
11/04/2024, 2:55 PM
It's D8, and I think it gets removed anyways
You can double check in the bytecode, it should generate