Hello,
I have faced a quite strange thing related to stdext hashmap. I have to work with a lot of objects and it is a priority to access the elements in a fast way. My program read the object values from a file and if it's a new element, then insert this value in a hashmap, if it is an already processed object, then changes the stored value in hashmap.
My problem is related to hashmap(stdext). I haven't found any initialisation option for this container. The key element is an unsigned integer (uint64), and and object is stored in the hashmap with this key, with the size of 160 KBytes. The program is working, but I have to wait too much, when the number of objects in hashmap reaches a limit. After this the hashmap is working well again, as I expect it. I thought maybe it is a reorganising step.
But these steps are critical, because after a certain number of objects it takes 5 hours for this step to be done, while a normal processing step is about 2-3 minutes. After this the processing becomes "normal".
Has anyone faced such problems? Does anybody know something deeper about this hashmap? I haven't found relevant anything related to this topic. I would be very grateful if someone could help me.
Best wishes,
tamás