Skip to content
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

Eager/deferred/lazy? #43

Open
MarkNicholls opened this issue Jun 19, 2022 · 1 comment
Open

Eager/deferred/lazy? #43

MarkNicholls opened this issue Jun 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@MarkNicholls
Copy link

I'm interested in using this to model very large Xmls, but I'm concerned that the library is effectively eagerly reading all the data in, and will take enormous amounts of data.
Is it just a thin layer on top of XDocument? (which I think is largely deferred execution, i.e. IEnumberable<>) or is it a bit more eager?

@mamift
Copy link
Owner

mamift commented Jun 20, 2022

Good question; looking at the technical documentation in the wiki, which is a copy of the technical manual Microsoft published back in 2011 and the source code for the XTypedElement class, it does appear to use XDocument internally for much of its typed-based operations.

I can't give you a 100% certain answer, but I think it's a safe conclusion that it is basically a wrapper for XDocument with code-gen sprinkled on top. I do recall using the library to read some pretty large XML files, some exceeding 500MB in size and I recall the program I was using the library in actually used much less than that at runtime in terms of memory usage.

@mamift mamift added the question Further information is requested label Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants