Use xsync.MapOf instead of sync.Map
last updated: Oct 20, 2023
https://puzpuzpuz.dev/so-long-syncmap
https://github.com/puzpuzpuz/xsync
presents a convincing case that xsync.MapOf is better on all counts than sync.Map if you need performance.