Why does Go use less memory for a slice of length 100k, than for an array of length 100k?
Channel:
Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=Sid9C1JsHRs
Why does Go use less memory for a slice of length 100k, than for an array of length 100k?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/11587741/dan)Dan
(stackoverflow.com/users/2357112/user2357112)user2357112
A special thanks goes out to the (https://stackoverflow.com/questions/76902907/why-does-go-use-less-memory-for-a-slice-of-length-100k-than-for-an-array-of-len)Stackexchange community
I wish you all a wonderful day! Stay safe :)
stack-memory go arrays heap-memory
Other Videos By Peter Schneider
Tags:
stack-memory
go
arrays
heap-memory