One of the tricky things that may causes memory issues in Go, is that maps grow but donβt shrink automatically after deleting elements. To free memory, you need to create a new map and copy remaining items.
Details: 100go.co/28-maps-memo...
@youssame.bsky.social
Engineering Manager @ Oracle | HTMX Contributor | IT Article Writer | Golang Enthusiast
One of the tricky things that may causes memory issues in Go, is that maps grow but donβt shrink automatically after deleting elements. To free memory, you need to create a new map and copy remaining items.
Details: 100go.co/28-maps-memo...
See you at ENSA El Jadida to talk about building great CLIs with Go!
03.12.2024 23:04 β π 2 π 0 π¬ 0 π 0