Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

use pool while deserialization of objects

Help
Sharad
2009-04-15
2013-05-14
  • Sharad
    Sharad
    2009-04-15

    Hi,

    We are using boost::object_pool to allocate class objects of certain types. After this the complete class hierarchy is serialized and then deserialized by a different process.
    At time of deserialization due to dynamic memory allocation we are seeing a lot of memory fragmentation.
    How can I enable pools to be used while creating deserialized objects as well?

    Thanks,
    Sharad.