Android performance को optimize करने में UI thread को responsive रखना, कुशल memory उपयोग (leaks से बचना), smooth rendering, कुशल lists, और bottlenecks खोजने के लिए profiling शामिल है। Performance सीधे user experience को प्रभावित करता है और Android devices की विविध श्रेणी में मायने रखता है।
UI (main) thread को responsive रखें
✓ NEVER block the main thread → do network/DB/heavy work OFF it (coroutines + Dispatchers.IO)
→ blocking causes jank or ANR ("App Not Responding") — a top issue
✓ Keep work in onCreate / onBind / on the main thread minimal and fast
