android: gson performance

后端 未结 5 1717
滥情空心
滥情空心 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:59

    I've seen questions like this come up before, and the general consensus is that Jackson is much faster than Gson. See the following links for more information:

    • Jackson Vs. Gson
    • Replace standard Android JSON parser for better performance?
    • http://www.cowtowncoder.com/blog/archives/2009/12/entry_345.html
    • https://stackoverflow.com/questions/338586/a-better-java-json-library

    Here is one which specifically discusses Android: http://ubikapps.net/?p=525

提交回复
热议问题