I use unordered_map with MSVC 2010. If I insert many elements into it, it begins to resize. During this process it copies all pairs and rehash them. When there are too many objects it takes too much time. Are there any tips how to avoid this effect? Something like reserve, but it is not implemented n VS 2010
Use rehash instead? It seems to function like reserve
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With