This project contains example code blocks in Jetpack Compose (the project uses Android as its base) to show that there can be optimizations done if the usages are done in a manner that allows Compose to optimize itself.
You can find the medium post in this link.