Hi, we’re working on our upgrade from Kotlin 1.4.32 to 1.5.21. We’re seeing a large regression in both app size and startup performance, which seems to be due to R8 now poorly handling lambda classes (eg, merging seems to not be working). Anyone else face this or have ideas how to resolve?
e
ephemient
08/05/2021, 6:05 PM
haven't noticed issues here, but I think we don't have very many SAM lambdas (which are the only ones using InDy by default now). the docs say you can use the compiler option
that’s a good call-out! I’ll give that a try, thanks
Ben Dodson
08/06/2021, 4:23 PM
Running an extra test to confirm, but the results are pretty interesting! I still see a large regression in app size (+380kb, down from +490kb), BUT, the startup performance IMPROVES significantly (-6.5%, instead of +6.5%!)