# Tips to Boost Compose Performance

How to optimize Compose performance by deferring state reads?

- **Source:** [ProAndroidDev - Medium](https://brifing.si/source/d9553fa9-7b72-4b9b-bc73-c6bf9a40dd5f)
- **Published:** 2026-07-10
- **Topic:** [Software & Engineering](https://brifing.si/c/engineering)
- **Original article:** <https://proandroiddev.com/magical-book-of-compose-performance-defer-state-reads-f15486bee807?source=rss----c72404660798---4>
- **On Brifing:** https://brifing.si/s/0267b97a-94a6-4b93-ab30-90592cc6e02d

## The Basics of Compose Performance

Compose is a tool for modern UI development in Android. Understanding its three main phases—Composition, Layout, and Drawing—is crucial for boosting performance. Reducing the number of these phases can significantly enhance performance.

## The Impact of State Reads

Where state values are read determines which phases Compose will rerun. If a state is read during Composition, all phases rerun, which can negatively impact performance.

## Performance Gain with Deferral

Deferring state reads to the Layout or Drawing phase allows skipping the Composition phase. This significantly boosts performance, especially with frequent state changes.

## The Role of Lambda Modifiers

Lambda versions like Modifier.offset and Modifier.graphicsLayer defer state reads, enhancing performance. This method is particularly effective for frequent state changes like dragging.

## Pushing State Reads Down the Tree

Pushing state reads as far down the tree as possible reduces the recomposition scope. This ensures only relevant parts rerun, improving performance.

## Mental Model for Performance Optimization

When reading state in Compose code, it's important to question whether the value changes frequently and causes unnecessary recomposition. Deferring state reads when necessary can significantly boost performance.

## Sources covering this story

- https://proandroiddev.com/magical-book-of-compose-performance-defer-state-reads-f15486bee807?source=rss----c72404660798---4 — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
