https://kotlinlang.org logo
t

tseisel

12/29/2020, 5:46 PM
Today I tried Jetpack Compose. While it looks promising, has anyone noticed how long it is to update a composable
@Preview
? It takes almost a minute to render each change, and I'm using a decent laptop. Also, is it required to rebuild project to update preview ?
z

zsperske

12/29/2020, 9:27 PM
compose is still in alpha, so it's not too surprising to see some slowness. while I don't know the team's specific plans, I would expect them to make improvements during beta and before the 1.0 release
n

Nana Vong

12/30/2020, 2:33 AM
Hope to reach Flutter level hot reload
r

Rafs

12/30/2020, 9:52 AM
Compose will never reach flutter level hot reload, that was one of the main reasons why Dart was chosen for flutter instead of Kotlin.
g

gildor

12/30/2020, 5:07 PM
Well, it was not chosen, it was developed this way to support interop mode on level of VM
b

BenjO

12/30/2020, 5:27 PM
an issue has been open here and marked as P1 priority. feel free to add more info if you want to ! https://issuetracker.google.com/issues/174779271
c

Colton Idle

12/30/2020, 6:56 PM
Oooh. More people should star that issue!
g

gildor

12/31/2020, 2:58 PM
It looks as a some specific issue, it may be a some bug, but also just slow project to compile (because of many reasons). preview can be as fast as Kotlin compiler, so improving compilation time will improve preview refresh speed
👍 2
2 Views