Hi 👋 This question is about android-performance. After going through a CPU trace I'm seeing that there is res/drawable/abc.xml file that is taking around 2 ms to inflate. After inspecting I noticed it's a vector asset. What have you all tried, to keep the inflation time manageable for vector graphics?
not kotlin but kotlin colored 1
10/26/2023, 7:55 PM
this is not Kotlin related. That said, this usually means your SVG is too complex. You can try to simplify it with tools like SVGOMG or if that doesn't work, consider a PNG or WEBP.
10/26/2023, 7:57 PM
Thank you for your reply. I wish we had an android-performance slack channel.