DEV Community

Nor
Nor

Posted on

Material3 or MaterialComponents is 2 times slower than AppCompat for each simple MaterialButton component?

with AppCompat button, it takes 3.3~4.5ms to render each button (a wider range would be 2.5~5ms).
with Material3 or MaterialComponents button, it takes 4.5~6ms to render each button (a wider range would be 4.5~7.5ms).

both are using super simple daily life button style. with super simple icon and text.

if i were to inflate a fragment with 15 buttons.
AppCompat would take 80~110~140ms.
MaterialComponents or Material3 would take 110~160~200ms.

Android development, uses Java + Xml.

@comment:
idk what is going on in Android development... so little info online and the speed just feels unreal and too slow, and conflicts to what i see in real world app (which are fast (i think... for now idk...))

Top comments (0)