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
20k
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
13k
deepu105
0
390
deepu105
0
20k
deepu105
0
35k
deepu105
0
33k
deepu105
3
19k
deepu105
1
16k
deepu105
0
23
deepu105
1
49
Other Decks in Technology
See All in Technology
oracle4engineer
0
2.7k
yosuke_furukawa
PRO
47
16k
opdavies
0
1.6k
clustervr
0
200
shomaekawa
3
1.3k
takuros
3
590
clustervr
0
170
con_mame
4
2k
kekeke_47
0
400
kilometer
0
150
kyonmm
1
2.3k
clustervr
0
210
Featured
See All Featured
andyhume
62
3.5k
bryan
30
3.3k
tenderlove
52
3.4k
jakevdp
775
200k
carmenhchung
26
1.3k
mojombo
358
62k
lauravandoore
437
28k
kastner
54
1.9k
philhawksworth
192
8.8k
lauravandoore
11
1.3k
orderedlist
PRO
329
35k
chriscoyier
145
19k
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