do enum entries need to be remembered using compos...
# compose
z
do enum entries need to be remembered using compose compiler 1.5.0 with kotlin 1.9.0?
c
If you need to keep or avoid calculation.
a
No. From https://kotlinlang.org/docs/enum-classes.html#working-with-enum-constants:
The
entries
property returns a pre-allocated immutable list of your enum constants.
This means that it always returns the same instance. Actually one of the motivations of introducing
entries
is to address the performance issues of
values()
.