Hi, On Wed, 20 Nov 2002, Bagepalli, Kiran wrote:
> Hi Gareth, > Thanks for the clarification. > Still have a few more things to clarify. > 1. Is the problem relating to releasing attributes limited to ID > attributes because thats what bugzilla says or this > problem will occur with any type of attribute. It is any kind of attribites. The ID attr comment I added just showed an example of the strange behaveiour that can occur. > 2. Is there any writeup on how much memory each of the DOM classes > take. Assuming the element names are string pooled(not counting the string > pool itself). I looked up some info on CVS which said DOMElementImpl took 48 > bytes. Not that I know of. > I wanted to store some extra data(DOMUserData) and the price for > this is very heavy since it creates a RefHashTableOf of size 29. So my > memory requirement shot up almost 400 bytes for every DOMElementImpl. > Is there any way, these sizes in these DOM structures can be > configurable. Xerces seems to use some default size and most of it maybe > unused. Is it not wise to configure these in the DOMBuilder somehow. This seems a bit much to allocate, however I do not kow any use cases as I am not familier with DOMUserData. This is another case where the memory cannot be reclaimed exept by the release of the document. Its possible to just reduce the size of this particular has if we consider it sub-optimal. Does anyone think that the hash should remain at 29 elements by default? > > 3. Are there any efforts made at allowing spooling to disk or > allowing for a interface to do so. XML files are growing in size and xerces > is making a good effort at controlling element and attribute names but not > so with the data(DOMCharacterDataImpl). Not that I know of. Can you clarify what you mean by data? Do you mean text content of element and attribute ndoes? If so then they are released when the element/attr is released. Gareth -- Gareth Reakes, Head of Product Development DecisionSoft Ltd. http://www.decisionsoft.com Office: +44 (0) 1865 203192 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
