Skip to content

Memory management question #2936

Discussion options

You must be logged in to vote

You're correct that should keep the whole document in memory.

You could try creating a new DocumentFragment and insert the results of the query into the fragment. I think that should move all of the nodes from the original Document into the fragment. Then you should be able to drop the original document.

I'm not at a computer to try right now, however.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@flavorjones
Comment options

Answer selected by flavorjones
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
Labels
None yet
3 participants