Original Post
I had this idea about optimizing our app. The first thing it does is load 40,000+ variables into a hash_map. The idea is to remember how much space is needed to load everything, and reserve that space before attempting to load all the variables. If I was working with a vector, this would be easy using .size to get the amount of memory and .reserve to allocate it. But with a hash_map, it is proving much harder. Is it possible to reserve space in a hash_map? Is it possible to determine how much space a hash_map currently has allocated? Thanks.