上一页 1 2 3 4 5 6 7 8 ··· 29 下一页

【解决了一个小问题】terraform apply 的时候出现访问 localhost 出错

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 有这样一段 terraform 的部署脚本: provider "kubernetes" { config_path = "~/.kube/config_di 阅读全文
posted @ 2023-10-05 14:04 ahfuzhang 阅读(19) 评论(0) 推荐(0) 编辑

【代码片段】makefile 中通过 shell 函数执行 sed

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 先上代码:(在 macos 上调试通过) # define a shell function to set debug mode to release mod 阅读全文
posted @ 2023-09-29 15:10 ahfuzhang 阅读(25) 评论(0) 推荐(0) 编辑

【学到一个小技巧】context.WithValue 中的 key 可以是个空对象

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 从 netpoll 库看到这段代码: type connkey struct{} var ctxkey connkey func prepare(conn n 阅读全文
posted @ 2023-09-29 11:42 ahfuzhang 阅读(50) 评论(0) 推荐(0) 编辑

一个思路:实现 golang 中的 `__file__` `__line__` 宏

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 测试 zaplog 发现,开启 caller 的调用,会使整个服务增加 2% 的损耗。 其实文件及其行号完全可以在编译期加上去,没必要带来运行期的性能损耗。 阅读全文
posted @ 2023-09-27 14:21 ahfuzhang 阅读(41) 评论(0) 推荐(0) 编辑

【小测试】fastcgo 调用 c 代码

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 找到了一个项目 https://github.com/petermattis/fastcgo: 通过汇编的方式来 call c函数,相比 cgo 会快很多。 阅读全文
posted @ 2023-09-26 13:20 ahfuzhang 阅读(14) 评论(0) 推荐(0) 编辑

玩一玩 golang 1.21 的 pgo 编译优化

摘要: 作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢! cnblogs博客 zhihu Github 公众号:一本正经的瞎扯 1.下载镜像 暂时不想替换本机的 golang 版本,于是打算在容器里编译: docker pull --platform=linux/amd64 golan 阅读全文
posted @ 2023-09-20 15:41 ahfuzhang 阅读(159) 评论(0) 推荐(0) 编辑

果然,基于 VictoriaMetrics 修改而来的 VictoriaLogs 来了!!!

摘要: **作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢!** * [cnblogs博客](https://www.cnblogs.com/ahfuzhang/) * [zhihu](https://www.zhihu.com/people/ahfuzhang/posts) * [G 阅读全文
posted @ 2023-08-31 17:06 ahfuzhang 阅读(271) 评论(2) 推荐(0) 编辑

重磅文章:VictoriaMetrics存储引擎分析.pdf

摘要: **作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢!** * [cnblogs博客](https://www.cnblogs.com/ahfuzhang/) * [zhihu](https://www.zhihu.com/people/ahfuzhang/posts) * [G 阅读全文
posted @ 2023-08-22 12:18 ahfuzhang 阅读(156) 评论(0) 推荐(0) 编辑

【发现一个问题】extjs-gpl-7.0: 当修改 store 对象的字段后,再次 loadPage() 后字段映射错误。

摘要: **作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢!** * [cnblogs博客](https://www.cnblogs.com/ahfuzhang/) * [zhihu](https://www.zhihu.com/people/ahfuzhang/posts) * [G 阅读全文
posted @ 2023-08-16 15:29 ahfuzhang 阅读(15) 评论(0) 推荐(0) 编辑

【小实验】javascript 能够表述的最大整数

摘要: **作者:张富春(ahfuzhang),转载时请注明作者和引用链接,谢谢!** * [cnblogs博客](https://www.cnblogs.com/ahfuzhang/) * [zhihu](https://www.zhihu.com/people/ahfuzhang/posts) * [G 阅读全文
posted @ 2023-07-27 14:53 ahfuzhang 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页