04 2018 档案

摘要:Go strings.Builder 字符串拼接操作优化 最开始的时候,可能会使用如下的操作: 与许多支持string类型的语言一样,golang中的string类型也是只读且不可变的。因此,这种拼接字符串的方式会导致大量的string创建、销毁和内存分配。如果你拼接的字符串比较多的话,这显然不是一 阅读全文
posted @ 2018-04-10 08:31 shhnwangjian 阅读(3401) 评论(0) 推荐(0) 编辑
摘要:httprouter使用pprof 参考:https://github.com/feixiao/httpprof https://xguox.me/go-profiling-optimizing.html/ 性能分析参考:https://github.com/caibirdme/hand-to-ha 阅读全文
posted @ 2018-04-03 10:27 shhnwangjian 阅读(896) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示