~/talk

Litho: Best Practices for building efficient UIs

Talkat droidcon NYC 2019 · 2019-08-26..08-27· [android]
links:none on file
slides:none on file

Litho claims up to smoother scrolling by moving layout and measurement to the background layout thread, flattening view hierarchies and recycling individual widgets instead of whole views. It uses Facebook’s Yoga engine, generates lightweight drawables/views via mountspecs, and supports incremental mount to spread mounting across frames. Concrete knobs include mount pool sizing (images use a pool size 30), a diffing/reconciliation path to reuse measurements, lazy state updates and cached values, Flipper/Yoga playground for debugging, and an experimental reconciliation that speeds up large lists.

AI-written summary · about

  1. 0:00Introduction to Litho
  2. 1:37Declarative UI basics
  3. 4:47How Litho works under the hood
  4. 10:07Mount specs and leaf nodes
  5. 14:43Layout and mount diffing
  6. 16:11Incremental mount optimization
  7. 18:01Gotchas and optimizations
  8. 18:43Managing state in Litho
  9. 24:47Caching heavy computations
  10. 26:32Animations in Litho
  11. 31:33Migrating to Litho
  12. 33:40Advanced framework configurations
  13. 36:34Debugging and tools
  14. 39:51Resources and next steps
  15. 41:45Q&A
~/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.