~/talk

Relevance of code minification in a performance world

links:none on file
slides:none on file

Benchmarks show turning on R8 and code minification yields concrete wins: a test app shrinks ~45% and reduces screen load time ~39%, with dex load dropping from ~2.9s to ~0.07s when fewer dex files remain (single-dex 65,000-reference limit). Wildcard keep rules (for example keeping R classes) can bloat dexes and hurt startup — one innocuous rule raised size ~3% and increased startup ~34%. Use android-optimized.txt, full mode, printconfiguration and add-configuration-debugging, map keep rules to source and test minified builds in CI.

AI-written summary · about

  1. 0:00Intro
  2. 1:17Life of code
  3. 2:23Obfuscation
  4. 3:40Minification
  5. 6:20Android Toolchain
  6. 10:21Test bed project
  7. 11:14Comparison
  8. 12:49Code Inlining
  9. 15:37App Startup
  10. 19:07Rules can hurt you
  11. 19:37Case Study
  12. 20:07Transitive R classes
  13. 27:11Imported Rules
  14. 27:53Further Optimisations
  15. 29:30Debugging Rules
  16. 30:23Proguard Playground
  17. 32:05Further Reading
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.