https://github.com/cembdc/maps-and-memoryleaks
Maps and Memory Leaks in Go
https://github.com/cembdc/maps-and-memoryleaks
go golang maps memory-leak memoryleaks pointers
Last synced: 7 months ago
JSON representation
Maps and Memory Leaks in Go
- Host: GitHub
- URL: https://github.com/cembdc/maps-and-memoryleaks
- Owner: cembdc
- Created: 2023-07-20T11:14:37.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T11:29:32.000Z (about 2 years ago)
- Last Synced: 2025-01-22T09:40:38.570Z (9 months ago)
- Topics: go, golang, maps, memory-leak, memoryleaks, pointers
- Language: Go
- Homepage:
- Size: 1.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# maps-and-memoryleaks
Maps and Memory Leaks in Go| Step | `map[int][128]byte` | `map[int]*[128]byte` |
| ----------- | ----------- | ----------- |
| Allocate an empty map | 0 MB | 0 MB |
| Add 1 million elements | 461 MB | 182 MB |
| Remove all the elements and run a GC | 293 MB | 38 MB |