It might be useful for you that, in Go, maps do not shrink their memory usage when elements are deleted.<p>[1]<a href="https://vivasoftltd.com/golang-mistakes-1-maps-and-memory-leaks/" rel="nofollow noreferrer">https://vivasoftltd.com/golang-mistakes-1-maps-and-memory-le...</a><p>[2]<a href="https://medium.com/@quicktechlearn/maps-and-memory-leaks-in-golang-4638bdc952b9" rel="nofollow noreferrer">https://medium.com/@quicktechlearn/maps-and-memory-leaks-in-...</a>