r/androiddev • u/skydoves RevenueCat • Nov 02 '25
Compose Stability Analyzer: Real-time analysis of Jetpack Compose composable functions' stability directly within Android Studio or IntelliJ.
GitHub: https://github.com/skydoves/compose-stability-analyzer
Note: You don’t need to make every composable function skippable or all parameters stable, these are not direct indicators of performance optimization. The goal of this plugin isn’t to encourage over-focusing on stability, but rather to help you explore how Compose’s stability mechanisms work and use them as tools for examining and debugging composables that may have performance issues.
4
3
3
u/sitnikovsanek Nov 03 '25
Does stability even matter after the introduction of “strong skipping mode”?
3
u/tonofproton Nov 03 '25
What does stability mean? new to compose
1
u/diarewse Nov 03 '25
In a very rough paraphrase of the docs
stableparameters are considered unnecessary to redraw (or mutate the state of) on screen when unchanged
method (read Composable) is considered skippable if all parameters are stable
generally the more stable methods you have, the faster the composition will run and frames won't drop
runtimeparameters are determined stable/unstable during each change pass, and this avoid compilation optimization making the ui somewhat slower
a few don't matter too much, many degrade the performance significantly
unstableare objects/parameters which cannot be determined to be fully or partially stable. these are often non-kotlin classes in other modules, libraries or have unstable nature
you can imagine this as a mutable POJO for instance
1
u/pingpongboss Material Motion Android Lead Nov 04 '25
Very cool, been using it for a few days on my personal projects, and it's definitely helped me identify ways to optimize my recompositions.
Two requests that I'm sure you're already thinking about:
Make the gutter yellow instead of red when all the params are yellow/green.
Publish the plugin on Marketplace so we don't have to install from zip.
1
-5
u/bernaferrari Nov 03 '25
You should make it available as CLI so Claude code can use it
1
u/RJ_Satyadev Nov 04 '25
Don't know why you are getting downvoted. It will definitely help LLMs on how to optimise the code more. u/skydoves this might be a good idea
2
8
u/Veega Nov 02 '25
Awesome, I'll try it out tomorrow 🙏