Android کی کارکردگی کو بہتر بنانے میں UI thread کو responsive رکھنا، موثر memory استعمال (leaks سے بچنا)، سلس rendering، موثر lists، اور bottlenecks تلاش کرنے کے لیے profiling شامل ہے۔ کارکردگی براہ راست صارف کے تجربے کو متاثر کرتی ہے اور 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
