Query related to STL, hash_multimap, C
using following code to insert 60,000 entries in hash_multimap container, each entry is, at MAX 270 bytes, as i run my program, i observe the program consumes 4.5 GB of RAM.
PS: as i debug my program, i tried to insert as
hashContainer.insert(Str_Pair("FFEC775ABDC37DED163B8B1896CABDCD2C392A04", "TEST"));
i notice for this single entry, 20 KB of memory increases.
Need your suggestion.
CODE:
hash_multimap<string,> hashContainer;
typedef pair<string, string> Str_Pair;
CHAR szFileName[MAX_PATH] ;
wcstombs(szFileName, ptrFN, MAX_PATH);
string strHash(szHash);
string strFileName(szFileName);
hashContainer.insert(Str_Pair(strHash, strFileName));