Degrease your Android app: stripping bloat for low-end de...
summary
Super traces ANR spikes to live SSC load, shrinks payloads from ~52 KB to <1 KB (60x) and reverts a Ktor parser after microbenchmarks show the in‑house parser is 82% faster and uses less memory. Production changes cut peak memory ~33% in benchmarks, ANRs 20–27% and GC‑ANRs 56%; replacing HashMap with scatter map yields ~55% fewer allocations and 55% faster processing, compose viewholder fixes drop bind time up to 93%, and a custom string.intern serializer plus flame graphs, Perfetto, heap dumps, Macrobenchmark and feature flags validate fixes.
AI-written summary · about
chapters (11)
- 0:00Introduction and initial fix
- 6:16Baseline and startup setup
- 10:48Debugging and microbenchmarks
- 14:25Flame graphs and heap dumps
- 18:21Heap dump exploration tools
- 20:56Optimizing collection types
- 23:27Compose and serialization
- 26:03Advanced caching strategies
- 29:11String interning optimization
- 32:09Stream and operator tuning
- 34:05AI tooling and wrap-up
