~/talk

Let's sprinkle some #PerfMatters on our ViewGroups (fr)

slides:none on file

Claims that replacing generic layouts and TextViews with a purpose-built flat ViewGroup and direct text drawing using Android text layouts yields real, measurable gains. Uses systrace and Hierarchy Viewer to find expensive layout passes, then implements a custom onMeasure/onLayout and draws text with StaticLayout on the canvas to avoid per-child layout and heavy view inflation. Targets the 16ms frame budget for 60fps, shows far fewer missed frames on devices like the Moto G, and verifies improvements with frame stats.

AI-written summary · about

  1. 0:00Start
  2. 17:50RelativeLayout
  3. 22:46A simple example
  4. 34:13Another potential bottleneck : TextView
  5. 37:41Did you say boring?
  6. 41:56Advantages
~/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.