On Wed, Apr 11, 2001 at 04:26:09PM -0400, Cem Karan wrote:
> Anyone who wants to jump in and correct me, please do so.
>
> Xerces tries to use reference counting wherever possible to
> automatically dispose of unused memory in much the same way that Java
> does it. If you actually use new and delete, then the built-in garbage
> collection won't work because the reference counting will be wrong.
In my application I used xerces 1.3 to parse a 39 MB XML message and sotre it
in a DOM. I used "libefence" both on Linux and AIX 4.3.2 to check for memory
errors. If I protect freed memory blocks from beeing reused again I get out of
memory. My hard limits were:
- Linux 1.0 GB allocatable memory (RAM and swap)
- AIX 1.5 GB hard coded with -bmaxdata when linking (there was enough RAM 2GB)
=> There are a very lot of calls to malloc/new. Since malloc/new are generally
no very cheap.
regards
--
Miroslaw Dobrzanski-Neumann
MOSAIC SOFTWARE AG
Base Development and Research
Tel +49-2225-882-291
Fax +49-2225-882-201
E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]