Better performance with libxml2 or NSXMLParser on the iPhone?

前端 未结 8 1965
天涯浪人
天涯浪人 2020-12-02 23:40

I\'m curious what your solution is for high performance XML parsing on the iPhone is, given its limited amount of CPU power. I have reviewed the XML Performance App that App

相关标签:
8条回答
  • 2020-12-03 00:27

    I tried my data (about 600 records) using the XML parsing app apple provides. Found the libxml2 to be much faster than NSXMLParser. I switched to libxml2 (though I find it a bit more complex to implement than NSXMLParser, it suited my purpose well)

    The same example tried with about a 100 records does not have much difference in both the implementations.

    0 讨论(0)
  • 2020-12-03 00:35

    I've used Objective-Xml. This is another drop in replacement for NSXMLParser. It gave me about a 15 second improvement on a file that was taking over 1 minute to parse. Still too slow though.

    0 讨论(0)
提交回复
热议问题