Is indy-lambdas effective for Compose?
# compiler
c
Is indy-lambdas effective for Compose?
d
cc @shikasd
s
Hi, what do you mean by "effective"? Compose supports indy lambdas, but I don't think it is more efficient, especially on Android
c
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
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
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
It's D8, and I think it gets removed anyways You can double check in the bytecode, it should generate
$$ExternalLambda
classes
👀 1
❤️ 1