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
Redux 番外篇
Search
CJ
October 20, 2018
Programming
1.4k
0
Share
Redux 番外篇
CJ
October 20, 2018
More Decks by CJ
See All by CJ
Debug Swift debugging with LLDB
ejameslin
0
180
iOS Module Intro
ejameslin
0
91
RxSwift Intro
ejameslin
0
59
Other Decks in Programming
See All in Programming
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
290
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
940
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
200
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
370
CDK Deployのための ”反響定位”
watany
4
760
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
190
Vibe NLP for Applied NLP
inesmontani
PRO
0
430
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
210
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
110
おれのAgentic Coding 2026/03
tsukasagr
1
150
t *testing.T は どこからやってくるの?
otakakot
1
630
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
The Pragmatic Product Professional
lauravandoore
37
7.2k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
330
HDC tutorial
michielstock
2
630
sira's awesome portfolio website redesign presentation
elsirapls
0
220
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Building the Perfect Custom Keyboard
takai
2
730
Marketing to machines
jonoalderson
1
5.2k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
710
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Transcript
IOS REDUX 番外篇 CJ LIN LINE TW IOS NERD
Why Redux
Redux Intro
Preferred Architecture MVVM + Redux + Data Normalization
Reducer design Reducer signature func reducer(action: Action, state: State) ->
State Reducer, Pure Function: state needs to be copied and modified Performance of `Copy`?
ReSwift Implementation
Swift Struct Copy Struct copy is super fast! Copy-on-write:
usually the modification is not much
Swift / ObjC Class Copy Shallow Copy: Not worked… True
Deep Copy • ObjC: NSKeyedArchiver & NSKeyedUnarchiver • Swift: Codable & JSONEncoder & JSONDecoder • 2000X+ slower
Swift / ObjC Class Copy Deep Copy with NSCopying •
copyWithZone: • init(array:copyItems:) • Faster
Redux State Design Use struct! Eliminate duplicates State Normalization (Data
shared in multi ViewControllers) Substate? Release unused / outdated data?
WE ARE HIRING!