Hi Elisha,
the MemoryManagerImpl class that is used by default by Xerces is simply a wrapper for the operator new/delete; you will need to create and install your own class. As a reference, you can look at the code of DOMDocumentImpl::allocate.

Hope this helps,
Alberto

At 18.51 12/09/2005 -0700, Elisha Berns wrote:
Hi,

I'm trying to understand the MemoryManager class that comes with
XercesC.  Basically I would like to know what kinds of allocations is it
optimized for?

I am looking for a memory manager, to use with Xerces and also with the
std::string class and similar string classes that use a custom allocator
that is specifically optimized for string allocations.  By that I mean
an allocator that allocates a block of memory for multiple objects
(strings) and by such speeds up allocation/deallocation requests by only
making actual system calls when a new big block is required.

Does this describe the behavior of the Xerces MemoryManager?

Thanks,

Elisha Berns
[EMAIL PROTECTED]
tel. (310) 556 - 8332
fax (310) 556 - 2839




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



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

Reply via email to