更换标准Android JSON解析器获得更好的性能? [英] Replace standard Android JSON parser for better performance?
问题描述
我知道Android有一个JSON解析器出炉的,但我想知道,如果它是值得一用的东西,提供了更好的性能(如杰克逊 - 看的 HTTP://jackson.$c$chaus.org/ )?有人试过了吗?
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.org/) ? Anybody tried that ?
推荐答案
好了,这里有夫妇中的 比较杰克逊JSON性能与现有JSON,SAX和Protocol Buffers的链接。据笔者,杰克逊是快于SAX或内置JSON和约看齐协议缓冲区。这最后部分听起来有点可疑,但是,无论如何,它肯定会出现杰克逊适用于Android和可能值得一些试验。
Well, here are a couple of links comparing Jackson JSON performance with existing JSON, SAX, and Protocol Buffers. According to the author, Jackson is faster than SAX or the built-in JSON and about on par with Protocol Buffers. That last part sounds a little suspicious, but, regardless, it certainly appears Jackson works on Android and may be worth some experimentation.
我没有检查的JAR大小,虽然。如果它是巨大的,除非你牺牲的额外JSON性能,它可能不是值得空间命中。
I haven't checked the JAR size, though. If it's huge, unless you were dying for extra JSON performance, it might not be worth the space hit.
这篇关于更换标准Android JSON解析器获得更好的性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!