# Android Performance

> Standards for Baseline Profiles, Startup Time, and UI Rendering. Use when optimizing app startup, jank, or UI rendering performance in Android. (triggers: **/*Benchmark.kt, **/*Initializer.kt, BaselineProfile, JankStats, recomposition)

- Skill: `comeonoliver/android-performance` (Agent Skill)
- Install (CLI): `npx skillmds@latest add comeonoliver/android-performance`
- Raw SKILL.md: https://api.skillmd.com/api/skills/comeonoliver/android-performance/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: ComeOnOliver (https://skillmd.com/u/comeonoliver)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/comeonoliver/android-performance

---


# Android Performance Standards

## **Priority: P1**

## Implementation Guidelines

### Startup Time

- **Baseline Profiles**: Mandatory for all production apps to pre-compile critical paths (improves startup by 30-40%).
- **Lazy Initialization**: Defer heavy SDK init using `App Startup` or lazy Singletons. Avoid blocking `Application.onCreate`.

### UI Performance

- **Recomposition**: Use "Layout Inspector" to find unnecessary recompositions.
- **Images**: Use Coil/Glide with proper caching and resizing (`.crossfade()`).
- **Lists**: `LazyColumn` must use `key` and stableitem classes.

## Anti-Patterns

- **No Nested Weights**: Use ConstraintLayout (Views) or Row/Column (Compose) instead.
- **No Activity Context in Singletons**: Use Application context to prevent memory leaks.

## References

- [Baseline & Startup](references/implementation.md)


