Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to kotshi

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Intro to kotshi

Avatar for Yuichi Maekawa

Yuichi Maekawa

January 26, 2018
Tweet

More Decks by Yuichi Maekawa

Other Decks in Programming

Transcript

  1. moshi A modern JSON library for Android and Java. https://github.com/square/moshi

    • 最近Gsonよりも好まれていた • Kotlinでも使用可能 Ref: • Intro to Moshi / hkurokawa https://speakerdeck.com/hkurokawa/intro-to-moshi
  2. moshi A modern JSON library for Android and Java. https://github.com/square/moshi

    • 最近Gsonよりも好まれていた • Kotlinでも使用可能 Ref: • Intro to Moshi / hkurokawa https://speakerdeck.com/hkurokawa/intro-to-moshi
  3. kotshiは早いのか • むっちゃ早かった moshi-kotlin Ave: 1300ms ~ 1700ms ⬇ kotshi

    Ave: 70ms ~ 100ms ※@Jsonが1つ,3つの場合で30回ずつ • 計測したサンプル置いておきます https://github.com/kaelaela/KotshiSample moshi-kotlinを試すときはコミット戻してください
  4. @JsonSerializableをつける @JsonSerializable data class Person( val name: String, val email:

    String?, @Json(name = "created_at") val signUpDate: Date, @Json(name = "job_title") val jobTitle: String?, @JsonDefaultValueInt(0) val age : Int )