cppfw / svgdom

:house: SVG document object model in C++
MIT License
49 stars 17 forks source link

use stream-oriented XML parser instead of pugixml #16

Closed igagis closed 7 years ago

igagis commented 7 years ago

like libexpat.

It should increase performance.

JaimeIvanCervantes commented 7 years ago

svgpp supports multiple xml parsers: http://svgpp.org/advanced.html#adding-new-xml-parser

And by default, it uses a modified version of rapidxml that supports namespaces: https://github.com/svgpp/rapidxml_ns

I've heard good things about rapidxml performance.

igagis commented 7 years ago

@JaimeIvanCervantes as I understand, rapidxml is not stream-oriented, as for example libexpat is. I think it will still be slower than stream-oriented one, as there is no actual need to create XML DOM while loading SVG.

JaimeIvanCervantes commented 7 years ago

Yep, then you will have to use expat or xerces, but both are a bit complex though.

igagis commented 7 years ago

using mikroxml