CMapStringToOb::InitHashTable
Initializes the hash table.
void InitHashTable(
UINT hashSize,
BOOL bAllocNow = TRUE
);
Parameters
hashSize
Number of entries in the hash table.bAllocNow
If TRUE, allocates the hash table upon initialization; otherwise the table is allocated when needed.
Remarks
For best performance, the hash table size should be a prime number. To minimize collisions, the size should be roughly 20 percent larger than the largest anticipated data set.
The following table shows other member functions that are similar to CMapStringToOb::InitHashTable.
Class |
Member Function |
---|---|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
|
void InitHashTable( UINT hashSize, BOOL bAllocNow = TRUE ); |
Requirements
Header: afxcoll.h