https://kotlinlang.org logo
#compose
Title
# compose
p

Peter

09/07/2023, 6:45 AM
I'm wondering... is it worth using
ImageVector
over
xml
icons? As
ImageVector
I mean generated vector path code, like M3 does it for example (
Icons.Default.Arrow
). Other than theme related benefits, I guess they should be more performant, since xml doesn't need to be parsed?
y

yschimke

09/07/2023, 7:15 AM
An internal app saw good wins by switching to ImageVector from XML. This was the fave icon.
p

Peter

09/07/2023, 7:31 AM
Do you mind expanding a bit on your answer? What do you mean by good wins?
y

yschimke

09/07/2023, 7:37 AM
5-10% improvement in a scroll focused benchmark. A lazy column with simple items that included an icon.
😮 1
p

Peter

09/07/2023, 7:47 AM
That's interesting, thanks for sharing