Ehmm, Jeremy, you're creating a new XmlErrorReporter() in every iteration;
maybe you should try deleting that?

> -----Original Message-----
> From: Jeremy Ford [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 16:58 PM
> To: [EMAIL PROTECTED]
> Subject: memory usage/performance for xerces-c 1.5.0
>

SINPPETY SNIP

>
> void main(int argc, char* argv[])
> {
>         XMLPlatformUtils::Initialize();
>
>         for(;;)
>         {
>             DOMParser parser;
>             parser.setDoValidation(true);
>             parser.setIncludeIgnorableWhitespace(false);
>             parser.setErrorHandler(new XmlErrorReporter());
                                                 ^^^^^^^^^^^^^^^^^^^^^^^ Aha!
>             parser.parse("test.xml");
>
>             DOM_Document doc = parser.getDocument();
>             DOM_Element root = doc.getDocumentElement();
>         }
>
>         XMLPlatformUtils::Terminate();
>         return 0;
> }
>

Ta, Evert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to