C ++ XML解析器(速度,访问DOM树) [英] C++ XML Parser (speed, accessing DOM tree)
问题描述
有任何人使用c ++ XML解析器(TinyXML,RapidXML,PugiXML等等),并知道哪些具有快速DOM树访问?我知道RapidXML的性能测试测试。但我对DOM树的访问速度感兴趣(如循环通过节点,查找节点等)这些解析器。
有人知道哪个是c ++中最快的?还是RapidXML?
Has anybody experience with c++ XML parsers (TinyXML, RapidXML,PugiXML, etc...) and knows which ones have fast DOM tree access? I know the performance test from RapidXML Test. But I am interested in the DOM tree access speed (such as cycling through nodes,finding nodes and so on) of these parser. Does anybody know which is the fastest for c++? Is it still RapidXML?
推荐答案
PugiXML通常比RapidXML快一点。请查看基准结果: http://pugixml.org/benchmark/
PugiXML is usually a little bit faster than RapidXML. Please look at the benchmark results : http://pugixml.org/benchmark/
正如你所看到的,TinyXML在这个板凳上很慢。我个人使用PugiXML,我使用100 - 400 KB XML文件,它工作正常。
As you can see, TinyXML is very slow in that bench. Personally i'm using PugiXML, and i'm working with 100 - 400 KB XML files and it works fine.
这篇关于C ++ XML解析器(速度,访问DOM树)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!