You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Markus Fellner <fe...@gimbio.de> on 2002/07/19 21:17:28 UTC

release unused strings in DOMStringPool

i use the nightly build 2002-07-14.

am i right, that unused strings in in Member DOMStringPool fNamePool will
not released until the DOM is released? can fNamePool only grow?
My application grows rapidly. It writes the actual timestamp many times as
attribute value.

see the test code:

XMLCh sValStr[50];
XMLCh sTimeStamp[50];
char buffer[10];
XMLString::transcode("Value", tempStr, 49);
for(int i=0;i<10000000;i++)
{
	XMLString::transcode(itoa(i, buffer, 10), sTimeStamp, 49);
	((IDOM_Element*)pNodeData)->setAttribute(sValStr,sTimeStamp);
}
writes the incrementing integer as attribute

Any chance to solve this problem?

Markus


+----------------------------------------------+
|                                              |
|  |\/\/\/|         M a r k u s  F e l l n e r |
|  |      |                      Plecherstr. 6 |
|  C-(o)(o)                      81541 München |
|  |      _)            Mobil: +49-170-5339667 |
|  | ,___|                Tel: +49-89-6514699  |
|  |    /                 Fax: +49-89-69372952 |
|  /____\       mailto:markus.fellner@epost.de |
|                                              |
+----------------------------------------------+



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org