Replace standard Android JSON parser for better performance?

前端 未结 5 1339
生来不讨喜
生来不讨喜 2021-02-14 17:19

I know that Android has a JSON parser baked in but I was wondering if it was worth using something that offered better performance (like Jackson - see http://jackson.codehaus.or

5条回答
  •  温柔的废话
    2021-02-14 17:38

    Just one more perspective on these parsers. I was looking through the Google IO for 2009 and there is really nice talk about efficient use of battery for app developers.

    Here is the link to that talk : link

    Now as per the talk inbuilt parson for android is Tree Based and these are supposed to be inefficient when it comes to battery life. Has anyone really looked into this.

    Reading through this discussion it seem Jackson parser seems to be a winner in everything. Its almost equally fast if not more than inbuilt one and also its Event/Stream based as opposed to tree based which is better in terms of battery usage.

    Just a though I wanted to share and get some opinions on this.

提交回复
热议问题