~/talk

View performance deep dive

links:none on file
slides:none on file

A sample RecyclerView app (cat photos) is profiled with CyTrace on Nexus 5 (Android 4.4) to break down create / bind / measure / draw work; text measurement and display-list creation dominate jank. Replacing view subtrees with drawables and custom text layout collapses nodes and cuts main-thread work — measured ~0.9 ms RecyclerView scroll, draw averages 3 ms and background text measurement stays under 7 ms — and moving text measurement off the UI thread via Litho off-main-thread text measurement yields sustained 60 fps; tradeoffs include accessibility, focus, RTL and invalidate semantics.

AI-written summary · about

  1. 0:00Introduction to scroll performance
  2. 1:13Understanding jank and RecyclerView
  3. 3:21Phases of a scroll event
  4. 4:03Time constraints for smooth scrolling
  5. 4:24Cost of view creation in RecyclerView
  6. 6:52Display lists and drawing optimization
  7. 8:57How display lists work in practice
  8. 12:08Practical performance examples
  9. 13:31Constraint Layout performance analysis
  10. 15:37Measuring recycled vs new views
  11. 18:27Worst-case performance with Constraint Layout
  12. 19:31Flattening view hierarchies with Drawables
  13. 22:19Optimizing ImageView with Drawables
  14. 22:59Text layout challenges and solutions
  15. 25:29Results of manual optimizations
  16. 27:16Drawbacks of Drawable-based UIs
  17. 31:54Introducing Litho framework
  18. 32:37Litho code example and benefits
  19. 35:07Offloading work to background threads
  20. 36:11Litho performance results
  21. 37:38Comparison of all approaches
  22. 38:18Q&A and closing remarks
~/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.