I have written a C++ program which works very fine. The problem comes in terms of efficiency and speed. I am using a multimap which is required for my type of requirement.
Now the problem is that for files more than 100 MB it takes a lot of time to load the data into multimap which slows down the program.
I am inserting Strings into the multimap. I even used references of string for insertion into multimap but not of much help.
My question is more conceptual. So what do I need to do to speed up my program ?
If I insert my strings into a vector and then insert that vector into multimap - will that increase the speed of my program ?
I mean something like this:
Would appreciate any advice
Thanks in advance :-/