Yusuf Wagh
09/01/2023, 3:09 PM1.dp
in every @Composable()
cause performance issue?
As it creates a new object everytimeromainguy
09/01/2023, 3:18 PM.dp
does not create an objectromainguy
09/01/2023, 3:19 PMDp
is a value class, so unless you do something to force boxing (i.e. storing it in a generic collection, using it as nullable type, etc.), no instance is createdromainguy
09/01/2023, 3:21 PMOffset
, Size
, etc. and even Color
romainguy
09/01/2023, 3:21 PMLong
)Yusuf Wagh
09/01/2023, 3:27 PM