-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can be very slow, at least with embedded data #5
Comments
Thank you for your report. Can you provide a link to an XML file that shows the issue, so that I can reproduce the problem on my machine? |
I committed some improvements (b40dc44) that significantly speed up the XML parser performance. I also updated the pub package (a9ea5c3). For further improvements I need to see what exact problem you are observing. If necessary, please reopen this issue and provide a test-case (for example in a pull request of https://github.com/renggli/dart-xml/blob/master/test/xml_benchmark.dart). |
I'm going to try this right now! |
Can't submit bounties on closed issues. Gah. |
Parsing KML XSD which can be found here: bool parse( String xml_ ){ Output: Which I'm quite happy with. |
On an XML with embedded data URI and SVG element text, parsing and then subsequent findAllElements takes several seconds and hangs the browser while parsing.
There's only about 3000 XML elements in the file, but with embedded data, is about 2.3 MB.
Same file when using responseXML is about one second.
It's an issue because I can't use the library as is. Trying xml_stream with my own search routines.
The text was updated successfully, but these errors were encountered: