compose-performance-audit

Audit Jetpack Compose rendering performance via recompositions, layout passes, and image loading.

915|88|Updated Feb 6, 2024
One-click install
npx skills add https://github.com/new-silvermoon/awesome-android-agent-skills --skill compose-performance-audit-new-silvermoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-performance-audit
Source: https://github.com/new-silvermoon/awesome-android-agent-skills/tree/main/.github/skills/compose-performance-audit
Command: npx skills add https://github.com/new-silvermoon/awesome-android-agent-skills --skill compose-performance-audit-new-silvermoon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Jetpack Compose UIs can suffer from slow renders, jank, and excessive recompositions as apps evolve. This Skill provides a structured audit workflow to identify root causes and guide targeted fixes.

Core Features & Use Cases

  • End-to-end Compose performance audit: instrumentation, baselining, root-cause analysis, and concrete remediation.
  • Focus on recomposition storms, layout thrash, unstable keys, and expensive work in composition.
  • Use Case: diagnose a screen with 60fps drops during scrolling and implement fixes to stabilize state reads and image loading.

Quick Start

Run a Compose performance audit on a target app, enabling Layout Inspector and Perfetto traces; follow the workflow to collect data, analyze findings, and apply the recommended fixes.

Frequently Asked Questions about compose-performance-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Jetpack Compose recomposition storms causing scrolling jank?

Fix Compose recomposition storms by auditing state reads, stabilizing keys, and wrapping values in remember to prevent unnecessary recompositions during scrolling. This Skill analyzes recomposition frequency and guides targeted state stabilization fixes.

Why does my Android Compose UI drop frames during layout passes?

Compose UI drops frames when expensive work executes during layout passes or composition. This Skill audits layout thrash and identifies expensive operations to move out of composition, restoring stable frame rates.

What's the best way to profile Jetpack Compose rendering performance?

Profile Compose rendering performance using Layout Inspector and Perfetto traces on release builds. This Skill leverages these profiling tools to collect accurate metrics, analyze recompositions, and derive actionable fixes.

Do I need a release build to audit Compose performance accurately?

Yes, a release build is required for accurate Compose performance auditing. Debug builds introduce overhead that skews metrics, so this Skill requires release builds alongside Perfetto traces and Layout Inspector to derive reliable data.

How do I audit LazyColumn performance issues in Jetpack Compose?

Audit LazyColumn performance by analyzing recompositions, unstable keys, and image loading inefficiencies within the component. This Skill reviews code-first usage patterns and provides remediation steps to stabilize scrolling state.

When should I use remember to prevent excessive recompositions in Compose?

Use remember to prevent excessive recompositions when expensive calculations or object allocations occur during composition. This Skill identifies missing remember usage and unstable keys to eliminate redundant recompositions.