Android Performance Optimization
Chunxiao Technology · 2016 – 2024
Role: Android Performance Engineer
Led Android performance optimization across IM client and Smart Gateway apps over 8 years. Six optimization domains: memory (LeakCanary, Heap Dump, OOM prevention), CPU (hotspot analysis, thread scheduling), UI fluency (RecyclerView, Jank reduction), cold-start, APK size (200MB+ down to 80-90MB, 55% reduction via R8/ProGuard), and stability (OOM/ANR/Crash governance). Built data-driven profiling workflows.
200MB→80MB
APK Size
1.5s→800ms
Cold Start
8+
Apps Covered
~47%
Startup Improvement
Problem
Enterprise Android apps suffered from sluggish cold-start, memory bloat/OOM crashes, ANR freezes, bloated APK (200MB+), and poor scrolling fluency across diverse device models.
Solution
Systematic multi-year optimization covering 6 domains: memory profiling (LeakCanary/Heap Dump), CPU hotspot analysis, RecyclerView jank reduction, cold-start lazy init, APK size via R8/ProGuard/resource shrinking, and ongoing stability governance.
Key Highlights
- ▸Reduced APK from 200MB+ to 80-90MB (55%+); most effective: stripping unused x86/x86_64 SO libs from map/audio/video SDKs, plus multi-MB image compression
- ▸Resolved OOM crashes via memory snapshots, LeakCanary log-driven root-cause analysis (most leaks: thread holding/concurrency and Handler retaining Context), Heap Dump reference chains, bitmap optimization
- ▸Eliminated ANR scenarios through main thread offloading, background thread scheduling, and third-party IM/SDK heartbeat tuning (Huanxin/JPush)
- ▸Improved RecyclerView fluency via CPU trace frame-drop analysis — distinguishing data-loading jank from refresh-triggered jank, reducing unnecessary refresh frequency
- ▸Applied cold-start optimization (lazy init, async SDK loading) reducing launch time from ~1.5s to ~800ms
- ▸Negotiated optimization boundaries with product team (image quality vs. APK size, refresh frequency vs. real-time feel)
Tech Stack
What I Learned
Performance optimization is a continuous iterative engineering practice combining data analysis, tool diagnostics, and business context — not a one-time fix. Systematic governance across all domains yields cumulative stability gains.