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

PyWebXML documents could be more lazy #3

Open
horazont opened this issue Dec 3, 2012 · 1 comment
Open

PyWebXML documents could be more lazy #3

horazont opened this issue Dec 3, 2012 · 1 comment

Comments

@horazont
Copy link
Member

horazont commented Dec 3, 2012

Often, we need only the XML representation of a PyWebXML document. It would be really smart to create a Document subclass to be returned by the PyWebXML parser which only actually parses the XML if some of the semantic attributes are requested (which only the blog actually does if I recall correctly).

This would save a lot of parse-unparse performance, especially as the intermediate product of any non-raw XSLT done in PyXWF is held as a PyWebXML document.

@horazont
Copy link
Member Author

horazont commented Dec 3, 2012

This would require to finally define the semantics of copying. We would have to make clear which operations require a tree for them alone (that are all operations doing in-place transformations or directly reusing elements from Document attributes) to avoid glitches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant