Is there a way to allocate the memory of a map, which has at most
Nmax keys, that points to a slice of maximum length
I'm currently just specifying the max number of keys via
make(map[int]int,Nmax), but I'm not sure how to tell Go that each slice will be of maximum length
Nmax because I don't know what the keys will be apriori.
I essentially have a bunch of sites with an integer population. I use the map to keep track of how many sites have a given population
N. The bottleneck in my program appears to be runtime.memmove, which I'm guessing comes from constant resizing of the slice the map points to.