2. About Android performance
● Performance is the most important
● Design with performance?
● Write faster, more performant App
● Give the right resources, at the right time
● Make fastest, smoothest, most awesome
experience
3. Rendering performance
● Draw view, transitions
● How fast can draw activity and get it
updated?
● All logic completed, all rendering done in
16ms or less
5. Understanding overdraw
● Overdraw is term used to describe how
many times a pixel has been re-draw in
single frame of rendering
● Most case, pixel overdraw
● GPU performance:
show GPU Overdraw flag
6. Tool Profile GPU Rendering
● Developer option → Profile GPU Rendering
on
● Graph for activate application, actionbar,
toolbar, navigation performance
● Process swap buffer
7.
8. Android UI and the GPU
● How does activity actually get drawn?
● How does all XML and markup language turn
into pixels that user can see and understand
?
● Rasterization heavy: app with high
performance
9.
10. Invalidations, Layouts, Performance
● How much updating the visual properties of
a view affects your performance?
● To improve measure, rendering pipeline
● GPU View Update option to understand view
drawn
● Hierachy viewer tool
11.
12. Battery Performance
● What eating your mobile battery?
● Write same action spent less battery
● Battery historian: analyst networking battery,
GPS time, wakelock time
● App in standby mode, wake lock, sleep…
● Keep device awake
14. Performance Cost of Memory
● Working in managed memory doesn’t mean
app is immune memory leaks.
● If start leaking memory, memory for app will
smaller.
● Trace memory manager