Friday, December 24, 2010

[android-developers] Re: Which JSON Parser is better

The JSON library built into Android (org.json) should be more than efficient for your needs on a mobile device. If there are inefficiencies in it, they almost certainly won't be large enough to cause a visible slowdown in your app unless you are transmitting a drastic amount of information over JSON - which isn't really what it's for. In addition, by using the built in library you can be assured that there will be fewer bugs than in something you write yourself simply because the included library is older and more widely deployed. Lastly, you save yourself the time, however minimal, of re-inventing the wheel.

Before you write your own JSON parser, I'd just write your app with the included code. Later on, if you notice performance problems you can then measure and eliminate them no matter where they originate. Pre-optimizing is a dangerous game to play.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment