Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pitfalls of PhotoKit
Search
griffin-stewie
December 22, 2015
Programming
0
240
Pitfalls of PhotoKit
関西モバイルアプリ研究会 #9 (kanmoba)
griffin-stewie
December 22, 2015
Tweet
Share
More Decks by griffin-stewie
See All by griffin-stewie
How I develop a Sketch Native Plugin
griffin_stewie
0
640
Boost your App Dev using Sketch
griffin_stewie
0
290
Take a peep at .app
griffin_stewie
0
420
Lightweight Markup Language to PDF
griffin_stewie
1
530
ドキュメント作成どうしてる?
griffin_stewie
0
560
Talk about "clg" color list generator.
griffin_stewie
1
420
Tips for Apple Watch.
griffin_stewie
0
770
JSON をそこそこ見やすくする CUI ツールを Objective-C で作ったときの話
griffin_stewie
1
570
Other Decks in Programming
See All in Programming
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
390
What is Parser
yui_knk
9
4.2k
エンジニア1年目で複雑なコードの改善に取り組んだ話
mtnmr
3
2k
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
仮想ファイルシステムを導入して開発環境のストレージ課題を解消する
segadevtech
2
550
GenU導入でCDKに初挑戦し、悪戦苦闘した話
hideg
0
170
Some more adventure of Happy Eyeballs
coe401_
2
190
GraphQL あるいは React における自律的なデータ取得について
quramy
11
3k
Google Sign-inの移行から始めるCredential Manager活用
clockvoid
0
380
GraphQLの魅力を引き出すAndroidクライアント実装
morux2
3
800
Hono・Prisma・AWSでGeoなAPI開発
nokonoko1203
5
680
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
270
Featured
See All Featured
Six Lessons from altMBA
skipperchong
26
3.4k
Facilitating Awesome Meetings
lara
49
6k
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
The Cult of Friendly URLs
andyhume
76
6k
Web development in the modern age
philhawksworth
205
10k
The Pragmatic Product Professional
lauravandoore
31
6.2k
BBQ
matthewcrist
83
9.2k
Automating Front-end Workflow
addyosmani
1365
200k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
A better future with KSS
kneath
235
17k
Transcript
Pitfalls of PhotoKit @griffin_stewie
Fenrir Inc. @griffin_stewie Bouldering: Level 5
PhotoKit
PhotoKit • From iOS 8 • Sophisticated • Thread safe
Simple Fetching
Assets Library • Enumerate groups and assets • Filter inside
loop • Easy access raw data
PhotoKit • Call fetch methods • Like CoreData • Apply
fetch options
Complicated Fetching
PHFetchOptions • dates • pixelWidth • pixelHeight • etc
PhotoKit • Access raw data ?
Darkside
Too slow
Fetching 5000 assets • Assets Library • Takes a few
seconds • PhotoKit • Takes a few minutes
Reasons
XPC • Assets Library • Same process as app •
PhotoKit • Separate process • Communicate using XPC
Thread safe • Assets Library • Developers should take care
of it • PhotoKit • Framework cares
Let's use obediently