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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
96
RxSwift Intro
ejameslin
0
61
Other Decks in Programming
See All in Programming
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1.1k
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
250
PHPer、Cloudflare に引っ越す
suguruooki
1
140
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
170
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
670
AI-DLC Deep Dive
yuukiyo
9
5.6k
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
100
Agentic Elixir
whatyouhide
0
440
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
180
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.9k
when storing skills in S3 file
watany
3
1.4k
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
Raft: Consensus for Rubyists
vanstee
141
7.4k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
180
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
120
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
390
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
Building Flexible Design Systems
yeseniaperezcruz
330
40k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
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!