bugVanisher / bugVanisher.github.io

my blog.
https://bugVanisher.cn
MIT License
0 stars 0 forks source link

go内存逃逸分析 — 见欢的博客 #39

Open bugVanisher opened 4 years ago

bugVanisher commented 4 years ago

https://bugvanisher.github.io/2020/05/23/go-escape-analysis/

说到内存分配,我们需要有一个常识性的认知:栈内存的分配较廉价,而堆内存分配相对昂贵。