|
|
|
|
|
by alphaalpha101
3227 days ago
|
|
So this new concurrent map? Am I right in understanding it's designed for cases where you have a map shared between goroutines but where each goroutine essentially owns some subset of the keys in the map? So basically it's designed for cases like 'I have N goroutines and each one owns 1/N keys'? |
|
With those constraints, why not create a small map for each goroutine at that point, and merge the maps afterwards?