4 ms·
sync.Map is slower than searching a slice of k-v struct for roughly <1000 elements. Go designed their map implementation to be unsafe for both read and write.
by dana321 7y ago
sync.Map is slower than searching a slice of k-v struct for roughly <1000 elements.
Go designed their map implementation to be unsafe for both read and write. I kind of don't care, i was trying to point out something simple and everyone is nitpicking.