optimization: consider alternative document free mechanisms that will allow setting RUBY_TYPED_FREE_IMMEDIATELY
#2822
Labels
topic/memory
Segfaults, memory leaks, valgrind testing, etc.
Milestone
See 0804380 for more context, but essentially:
xmlFreeDoc
frees all the underlying memory for usWorking on #2807 made me realize that we're doing more work during the deallocate function than I thought -- so it's both slower and less safe than it could be.
I have at least one idea, which is instead of parenting the unparented nodes, just call
xmlFreeNode
on them to avoid the parenting overhead.The text was updated successfully, but these errors were encountered: