Skip to content

Question about speed of findAllElements #116

Answered by renggli
bubnenkoff asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, check out the event-driven API: https://github.com/renggli/dart-xml#event-driven

Note: findAllElements is not slow. What is not efficient is to read gigabytes of text and to build a DOM with millions of objects that are not used in the end. With the event-driven API you can avoid that and incrementally scan through the input only building and keeping the parts of the tree in memory that you actually need.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #113 on December 29, 2021 11:08.