3 points · by valyala · 3mo ago · 1 comment
Looks like Go switched to exactly the same logic as in Java. But Java had it since 2004, did I miss something?
Understanding Go
Go’s sync.Map now uses a hash trie. This article builds the implementation from a normal map, then explains lock-free reads, fine-grained writer locking, collisions, retries, deletion, Clear, Range, and the trade-offs against map plus RWMutex.
VictoriaMetrics