Fragments 2017

A conference on the mobile ecosystem in India

Faster JSON Parsing

Submitted by Anirudh Ramanan (@anirudh23) on Thursday, 27 July 2017

videocam_off

Technical level

Intermediate

Section

Crisp Talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +3

Abstract

The talk is about improving the performance of the JSON parsing in Android. It covers the working of GSON library, and the performance bottlenecks that we hit, and the way we can improve the overall parsing time.

Outline

  • Problems with Current Implementation of GSON
  • Internals of GSON (the serilization and deserialization)
  • Insight on TypeTokens
  • Benefit of TypeAdapters
  • Introduction to STAG

Speaker bio

One of the projects that I worked on was on improving the JSON Parsing Time. We came across a library named STAG, which was a very naive library with minimal support. The overall idea of the library was good, and with initial testing we found a good boost in parsing performance. We added a bunch of features, and contributed back to the open source community. During this, I got a good understanding of internals of GSON, and the performance bottlenecks that we faced. With over 2 months into this project, I gained a lot of experience on the working of many parsing libraries as well, so I think I’m the right guy to give a session on this.

Slides

https://drive.google.com/open?id=1782re1eiXClX0Px8aYu2-Kfr2ybmJrKiBeX_T43Q8EA

Comments

  • 1
    Manan (@marv) a year ago (edited a year ago)

    Hey Anirudh,
    May you modify access to the presentation public.
    Are you going to talk deeper into reflection-less TypeAdapters for JSON parsing?

  • 1
    Anirudh Ramanan (@skynet) a year ago (edited a year ago)

    Hi Manav, I have shared the new link of the presentation. Yes, it will be a deeper talk on the working of GSON and the typeadapters
    https://drive.google.com/open?id=0ByiCCBmJL8_yVUgzclo2R0cyODA

  • 1
    martin garix a month ago

    Play bejeweled 3 free online,install this game in your mobile and PC,it is not high concept game http://bejeweled3.co finally invite your friends and try to play this game.

Login with Twitter or Google to leave a comment