android: gson performance

后端 未结 5 1718
滥情空心
滥情空心 2020-12-14 10:42

I am trying to use gson to do my object mapping on the android emulator.

It has been ridiculously slow when processing json data around 208 kb. I do not have any hie

5条回答
  •  北海茫月
    2020-12-14 10:52

    I've found that I can speed up gson.fromJSON quite considerably by not modelling all the elements in the JSON that I won't need. GSON will happily fill in only what is specified in your response classes.

提交回复
热议问题