Go Maps
Jun 27, 2017This is a bit of a Tuesday micro-blog looking at the performance of various solutions for concurrent map insertion/retrieval in golang.
In particular I’m going to look at three types of Map:
- Go’s builtin map type, protected by a read-write mutex (sync/atomic/RWMutex)
- Go’s new sync.Map type, which is an optimized scalable concurrent map.
- Go’s builtin map type, protected by an elided rw-mutex.