02 2022 档案
摘要:C编译器优化技术:RVO、NRVO和复制省略: https://www.cnblogs.com/kekec/p/11303391.html C中的RVO和NRVO:https://blog.csdn.net/yao_zou/article/details/50759301 详解RVO与NRVO(区别
阅读全文
摘要:现象 服务运行时发现,随着服务运行时间增加,cpu占用持续增长。查看火焰图: pprof查看系统调用: 怀疑是使用timer导致的。 分析 代码逻辑内请求级使用了time ticker,但是没有close。代码如下: func Process(key string) Item { ticker :=
阅读全文

浙公网安备 33010602011771号