You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @hiqsociety. SwissMap is designed to be memory efficient. It stores its elements using two backing slices and only makes allocations when resizing, so there is minimal garbage generated. It also has a higher load factor than the built-in Golang map, so its memory footprint is smaller. Here is a chart comparing the memory footprint of SwissMap to the built-in Golang map. The memory footprint of storing the same data in a slice is also included for comparison:
how's the memory in bytes allocation? how much garbage does it generate?
The text was updated successfully, but these errors were encountered: