Re: [xml] setting URL for xmlRelaxNGParserCtxt?


Martijn Faassen wrote:
Hey Daniel,

I hope you'll still answer the other part of my mail (the Relax NG include processing errors).. that's a bit more urgent right now. :)
Dictionaries won't grow indefinitely if I throw away nodes once every while, right? The refcount will go down of dictionary values, to 0 if it's a unique string, and the thing (tag name? text node value?) will go away.

As far as I can see in the code, the dictionary entries are not
reference-counted; only the dictionaries itself are reference-counted.
So if you put a string in, it won't be freed until the dictionary itself
is freed.

Now understand that there are "ID"s which are potentially random strings, and will grow my dictionary. Will those IDs never be removed because they're not dereffed when a document goes away? Are these XML

They won't be removed since there is no dereferring machanism.

per-document unique IDs we're talking about, special attributes which typically get declared to be an ID in a DTD? I'm asking as I haven't done a lot with IDs yet.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]