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
260
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
710
Boost your App Dev using Sketch
griffin_stewie
0
300
Take a peep at .app
griffin_stewie
0
440
Lightweight Markup Language to PDF
griffin_stewie
1
600
ドキュメント作成どうしてる?
griffin_stewie
0
610
Talk about "clg" color list generator.
griffin_stewie
1
450
Tips for Apple Watch.
griffin_stewie
0
810
JSON をそこそこ見やすくする CUI ツールを Objective-C で作ったときの話
griffin_stewie
1
580
Other Decks in Programming
See All in Programming
SODA - FACT BOOK
sodainc
1
840
FormFlow - Build Stunning Multistep Forms
yceruto
1
160
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
500
セキュリティマネジャー廃止とクラウドネイティブ型サンドボックス活用
kazumura
1
170
RubyKaigiで得られる10の価値 〜Ruby話を聞くことだけが RubyKaigiじゃない〜
tomohiko9090
0
140
社内での開発コミュニティ活動とモジュラーモノリス標準化事例のご紹介/xPalette and Introduction of Modular monolith standardization
m4maruyama
0
120
Bytecode Manipulation 으로 생산성 높이기
bigstark
1
300
生成AIで日々のエラー調査を進めたい
yuyaabo
0
530
複数アプリケーションを育てていくための共通化戦略
irof
10
3.8k
実践ArchUnit ~実例による検証パターンの紹介~
ogiwarat
2
250
XSLTで作るBrainfuck処理系
makki_d
0
190
Using AI Tools Around Software Development
inouehi
0
1.2k
Featured
See All Featured
Code Review Best Practice
trishagee
68
18k
For a Future-Friendly Web
brad_frost
179
9.8k
Optimizing for Happiness
mojombo
379
70k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
How to Ace a Technical Interview
jacobian
276
23k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
BBQ
matthewcrist
89
9.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Speed Design
sergeychernyshev
30
990
Designing for Performance
lara
609
69k
Faster Mobile Websites
deanohume
307
31k
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