golang程序优化方法

1.程序编译瘦身,降低二进制文件大小

编译时增加 -ldflags "-s -w" 示例:go build -ldflags "-s -w" -o hello2 hello.go

性能优化

https://blog.csdn.net/u010649766/article/details/80582153

 

https://blog.csdn.net/kenkao/article/details/96300389

 

https://blog.csdn.net/weixin_42117918/article/details/100155288?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

 

https://pengrl.com/p/24169/

 

https://blog.csdn.net/cyq6239075/article/details/103911098

 

https://developer.aliyun.com/article/573743

 

https://blog.csdn.net/csdnnews/article/details/104549207

 

https://blog.csdn.net/jayzym/article/details/85626217

 

https://studygolang.com/articles/13426?fr=sidebar

栈内存逃逸,prrof工具分析,gcdebug

posted on 2022-04-12 11:20  ExplorerMan  阅读(296)  评论(0编辑  收藏  举报

导航