Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to accessing std:map (index)th element Pin
Maximilien8-Sep-05 5:54
Maximilien8-Sep-05 5:54 
GeneralRe: how to accessing std:map (index)th element Pin
garbash8-Sep-05 7:06
garbash8-Sep-05 7:06 
AnswerRe: how to accessing std:map (index)th element Pin
Bob Stanneveld8-Sep-05 10:42
Bob Stanneveld8-Sep-05 10:42 
QuestionEdit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 4:32
sirtimid8-Sep-05 4:32 
AnswerRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 4:35
David Crow8-Sep-05 4:35 
GeneralRe: Edit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 4:51
sirtimid8-Sep-05 4:51 
GeneralRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 5:53
David Crow8-Sep-05 5:53 
QuestionRedefinition Pin
Babto8-Sep-05 4:13
Babto8-Sep-05 4:13 
AnswerRe: Redefinition Pin
Cedric Moonen8-Sep-05 4:17
Cedric Moonen8-Sep-05 4:17 
GeneralRe: Redefinition Pin
Babto8-Sep-05 5:41
Babto8-Sep-05 5:41 
GeneralRe: Redefinition Pin
Maximilien8-Sep-05 5:59
Maximilien8-Sep-05 5:59 
AnswerRe: Redefinition Pin
David Crow8-Sep-05 4:32
David Crow8-Sep-05 4:32 
QuestionProblem with worker thread Pin
ashtwin8-Sep-05 4:06
ashtwin8-Sep-05 4:06 
AnswerRe: Problem with worker thread Pin
David Crow8-Sep-05 4:34
David Crow8-Sep-05 4:34 
AnswerRe: Problem with worker thread Pin
Marc Soleda8-Sep-05 4:37
Marc Soleda8-Sep-05 4:37 
AnswerRe: Problem with worker thread Pin
Jim Howard8-Sep-05 12:54
Jim Howard8-Sep-05 12:54 
AnswerRe: Problem with worker thread Pin
ThatsAlok8-Sep-05 18:16
ThatsAlok8-Sep-05 18:16 
QuestionEdit a record in a DB table opened with ODBC Pin
sirtimid8-Sep-05 3:52
sirtimid8-Sep-05 3:52 
AnswerRe: Edit a record in a DB table opened with ODBC Pin
David Crow8-Sep-05 6:01
David Crow8-Sep-05 6:01 
QuestionUsing the Registry Pin
sweep1238-Sep-05 3:39
sweep1238-Sep-05 3:39 
AnswerRe: Using the Registry Pin
kakan8-Sep-05 3:55
professionalkakan8-Sep-05 3:55 
AnswerRe: Using the Registry Pin
Marc Soleda8-Sep-05 4:02
Marc Soleda8-Sep-05 4:02 
AnswerRe: Using the Registry Pin
David Crow8-Sep-05 7:40
David Crow8-Sep-05 7:40 
Questionhow do I turn off a hidden variable?? Pin
IlanTal8-Sep-05 3:37
IlanTal8-Sep-05 3:37 
Questionmap<string, set<string> > Pin
Achim Klein8-Sep-05 3:15
Achim Klein8-Sep-05 3:15 
Hi folks,

I am working on an application that cross-links path names and keywords.
Currently I am using two maps that hold the information:
map<string, set<string> > m_path2keywords;
map<string, set<string> > m_keyword2paths;

While I am filling these maps with information they allocate much more memory than I expected (20.000 files -> more than 200MB of RAM). After minimizing and restoring the window that presents the data the allocated memory drops to less than 5MB!?!
I guess the previous waste of RAM is related to the map container.

So, would it be better to deal with one big map than to use two ?
How big is the organizational overhead of the map container ?
Are there any memory saving alternatives to the STL map container ?


Thanks in advance,
Achim Klein


We can do no great things, only small things with great love. - Mother Theresa

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.