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
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pitfalls of PhotoKit
関西モバイルアプリ研究会 #9 (kanmoba)
griffin-stewie
December 22, 2015
More Decks by griffin-stewie
See All by griffin-stewie
How I develop a Sketch Native Plugin
griffin_stewie
0
780
Boost your App Dev using Sketch
griffin_stewie
0
320
Take a peep at .app
griffin_stewie
0
470
Lightweight Markup Language to PDF
griffin_stewie
1
630
ドキュメント作成どうしてる?
griffin_stewie
0
630
Talk about "clg" color list generator.
griffin_stewie
1
480
Tips for Apple Watch.
griffin_stewie
0
860
JSON をそこそこ見やすくする CUI ツールを Objective-C で作ったときの話
griffin_stewie
1
600
Other Decks in Programming
See All in Programming
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
330
Semantic Version 単位で戦略を柔軟に変えて、パッケージアップデートを自動化する
daitasu
1
340
初めてのKubernetes 本番運用でハマった話
oku053
0
110
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
990
過去最大のMCPアップデート! 2026-07-28 RC版の謎に迫る
licux
6
450
Vite+ Unified Toolchain for the Web
naokihaba
0
650
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
190
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.7k
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
1
200
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.6k
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
380
ローカルLLMでどこまでコードが書けるか -縮小版 / How much code can be written on a local LLM Shortened
kishida
2
170
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Making Projects Easy
brettharned
120
6.7k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
260
Ruling the World: When Life Gets Gamed
codingconduct
0
270
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Chasing Engaging Ingredients in Design
codingconduct
0
230
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.7k
Done Done
chrislema
186
16k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
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