~/talk

Practical Optimizations

Talkat AndroidMakers by droidcon 2024 · on Friday, 2024-04-26· at 16:20· [web-performance]
slides:none on file

Shows concrete wins: profiling with the Jetpack Benchmark Library and inspecting bytecode/assembly with Cutl Explorer finds fixes that actually matter. Example fixes include swapping loop order to cut a Pixel 2 bitmap scan from ~21,200,000 ns → ~4,000,000 ns, replacing check with checkPrecondition 124,000 ns → <100 ns, making functions top‑level to avoid companion init costs, using a scatter map to drop per‑entry overhead to 1 byte and make inserts ~1.7× and iteration ~1.8× faster, and R8/ART/ baseline/profile work that reduces startup tens of milliseconds.

AI-written summary · about

  1. 0:00Jetpack Compose optimizations
  2. 1:11Optimization opportunities
  3. 7:50Cache efficiency and loop order
  4. 12:09Cuttle Explorer for code analysis
  5. 16:24Optimizing Offset class
  6. 22:09Efficient bit manipulation
  7. 29:31HashMaps vs ScatterMaps
  8. 35:56Practical optimizations
  9. 38:26Immediate Compose improvements
~/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.