Skip to content

Instantly share code, notes, and snippets.

@niwatako
Created June 21, 2018 11:03
Show Gist options
  • Select an option

  • Save niwatako/3ec52eab568740cd7c1b6b862834685d to your computer and use it in GitHub Desktop.

Select an option

Save niwatako/3ec52eab568740cd7c1b6b862834685d to your computer and use it in GitHub Desktop.
KotshiからMoshi-codegenに乗り換えた経緯 #CodePiece #potatotips
potatotips #52 (iOS/Android開発Tips共有会) - connpass
https://potatotips.connpass.com/event/88164/
## duane0728 とやま KotshiからMoshi-codegenに乗り換えた経緯 Android @duane0728
### FOLIOの現状の確認
2月の #potatotips で
moshi-kotlinが遅いのでkotoshiを使って20sec→12secになった
Moshi-codegen が5月に登場した。Kotshiとどちらを選ぶか考えた。
- 速度
- 安定性
- 将来性
から比較
### 速度
0.2MBのJSONパース平均: そんなに変わらない
### 安定性
Moshi-codegenのIssueに結構大きなバグを発見
NonNullなStringのListへのパースにNullが入ってしまう。
自分が確認したところKotshiの1.0.4(最新)でも起きている。
FOLIOでバグが起きても治せるのでそんなに大きな問題じゃないかな
### 将来性
Moshi-codegenはMoshi本家がオーナー
(筆記追いつかず)
Moshi-codegenが上かな
KotshiからMoshi-codegenに乗り換えました
これから導入するならMoshi-codegenを使えば良さそう、成熟してないのでissueはチェック
Kotshi導入済みならまだ様子見でもいいかな
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment