原生与 JavaScript 解析巨大的 xml 文件
我需要解析来自服务器的大 xml 数据。在移动设备上哪个会更好:
- 使用 xmlpullparser/sax 解析它。
- 基于 Javascript 的解析。
有性能数据吗?在这里使用 renderscript (如果是 android)有什么建议吗?
I need to parse big xml data from the servers. Which would be better on a mobile device:
- Parsing it using xmlpullparser/sax.
- Javascript based parsing.
Any performance numbers? Any suggestions of using renderscript (incase of android) here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为使用 SaxParser 更好,因为它适合通过网络处理大文件
I think its better to use SaxParser because it is good for large files through net