Tag

Recomposition

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Aug 9, 2023 · Mobile Development

Jetpack Compose Layout Optimization Best Practices

The article outlines six Jetpack Compose layout‑optimization best practices—using remember to cache calculations, supplying unique keys in Lazy layouts, applying derivedStateOf to throttle recomposition, skipping unnecessary composition/layout phases, avoiding backward state writes, and enabling release‑mode R8 profiling—to dramatically reduce redundant recompositions and improve UI performance.

Android DevelopmentJetpack ComposeLazyColumn
0 likes · 11 min read
Jetpack Compose Layout Optimization Best Practices
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Nov 21, 2022 · Mobile Development

Deep Dive into Jetpack Compose Runtime: Core Implementation Principles

The article dissects Jetpack Compose’s runtime, explaining how the Kotlin compiler plugin transforms @Composable functions with $composer parameters, builds a dual NodeTree using SlotTable and LayoutNode, employs a GapBuffer‑optimized virtual DOM, and leverages a Snapshot‑based MVCC system to manage state changes and trigger efficient recomposition.

Android DevelopmentCompose RuntimeDeclarative UI
0 likes · 22 min read
Deep Dive into Jetpack Compose Runtime: Core Implementation Principles