> 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?

The MemoryManager class is an abstract base class that allows many 
implementations.  The default implementation just calls the standard 
operator new and operator delete.

> 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.

Providing custom allocators for the standard library is tricky business, 
depending on your compilers' implementations.  Providing an implementation 
of MemoryManager for Xerces-C that's optimized for string allocations 
would probably not be a good idea.

> Does this describe the behavior of the Xerces MemoryManager?

No.

Dave

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

Reply via email to