~/talk

Core Data Performance

Talkat Pragma Conference 2017 · 2017-10-12..10-13· [ios]
slides:none on file

Core Data can stay simple: an example app stores meeting rooms, scales from 1 to 5,000 items, and freezes the main thread for 14.5 seconds when all 5,000 are updated at once. Using a background context with merge cost visible in Instruments cuts main-thread time to ~0.5s. Splitting work into batch saves every 100 items or asking the API for only changed records reduces freezes to ~25ms. Instruments is used to measure and guide fixes.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:25Core Data complexity myth
  3. 4:57Simple Core Data example
  4. 6:01Using Instruments for profiling
  5. 7:31Performance with 1000 rooms
  6. 8:35Background context for performance
  7. 9:46Merging changes overhead
  8. 10:48Batch saving and updates
  9. 11:53API design impact on performance
  10. 13:17Collaborating with API teams
  11. 14:27Apple’s Core Data resources
  12. 15:53The power of Instruments
  13. 16:35Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.