Just for curiosity's sake, I added `@NonRestartabl...
# compose
a
Just for curiosity's sake, I added
@NonRestartableComposable
to all my 173 composables to see how much could I theoretically save. ~200 KB it seems. Not sure if I expected it to be higher or lower, but I wonder what would impact this more? The number of composables, or total parameters?
s
Why would you want to do this? You save a few kilobytes but you will lose all the Compose performance optimizations and possibility to skip or restart composables. The documentation states:
This may be desirable for small functions which just directly call another composable function and have very little machinery in them directly, and are unlikely to be invalidated themselves.
a
just for curiosity's sake
👍 3