Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Golang Memory usage(Stack vs Heap)
Deepu K Sasidharan
February 12, 2020
Technology
1
25k
Golang Memory usage(Stack vs Heap)
Deepu K Sasidharan
February 12, 2020
Tweet
Share
More Decks by Deepu K Sasidharan
See All by Deepu K Sasidharan
deepu105
1
190
deepu105
0
230
deepu105
1
17k
deepu105
0
490
deepu105
0
24k
deepu105
0
40k
deepu105
0
38k
deepu105
3
20k
deepu105
1
17k
Other Decks in Technology
See All in Technology
yoku0825
PRO
2
630
surumegohan
1
170
kenichimunezawa
0
820
finengine
0
240
ayatokura
0
250
jaguar_imo
0
110
akabekobeko
0
130
line_developers
PRO
1
550
kazeburo
1
120
ymatsuwitter
0
200
kenya888
1
110
yashi8484
0
130
Featured
See All Featured
jmmastey
10
700
ufuk
56
5.5k
jonyablonski
21
1.3k
morganepeng
19
1.3k
swwweet
206
6.9k
sachag
445
36k
dougneiner
56
5.4k
danielanewman
201
20k
reverentgeek
27
2.1k
sstephenson
146
12k
malarkey
193
8.7k
philhawksworth
190
17k
Transcript
Go Memory usage Heap Goroutine stack P1 mcache main frame
BONUS_PERCENTAGE 10
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 Employee:new name “John” salary 5000 sales 5 bonus 0
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 0
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 0 getBonusPercentage salary 5000
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 0 getBonusPercentage salary 5000 percentage 500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 0 getBonusPercentage salary 5000 percentage 500 return 500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500 bonus 2500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 findEmployeeBonus salary 5000 noOfSales 5 bonusPercentage 500 bonus 2500 return 2500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 mspan Employee name “John” salary 5000 sales 5 bonus 2500
Go Memory usage Heap Goroutine stack P1 mcache main frame
john BONUS_PERCENTAGE 10 mspan Employee name “John” salary 5000 sales 5 bonus 2500