Skip to content

Instantly share code, notes, and snippets.

@hSATAC
Created August 10, 2013 03:29
Show Gist options
  • Save hSATAC/6198933 to your computer and use it in GitHub Desktop.
Save hSATAC/6198933 to your computer and use it in GitHub Desktop.
Make Your Views Fast by Evadne Wu

Make Your Views Fast by Evadne Wu

  • rendering pipeline

  • layer tree(your code) vs presentation tree => pass to render tree

  • blending vs compositing

view 疊太深 => draw into your own buffer <=> against animation

rendering time

CoreGraphics > UIView > CALayer

  • 3 Instagram secrects

Do things secretly and unseen.

Different kinds of work

Time X Disposable

Creation is costly

retain not copy.

tools

  • instruments
  1. core animation instrument (overdraw, misaligned, copied images)
  2. Allocations Instrument
  3. Threads Instrument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment