CArchive::SetStoreParams
Visual Studio 2005
Use SetStoreParams when storing a large number of CObject-derived objects in an archive.
void SetStoreParams( UINT nHashSize = 2053, UINT nBlockSize = 128 );
Parameters
- nHashSize
-
The size of the hash table for interface pointer maps. Should be a prime number.
- nBlockSize
-
Specifies the memory-allocation granularity for extending the parameters. Should be a power of 2 for the best performance.
SetStoreParams allows you to set the hash table size and the block size of the map used to identify unique objects during the serialization process.
You must not call SetStoreParams after any objects are stored, or after MapObject or WriteObject is called.