1.10 Go defer 会有性能损耗,尽量不要用?
![image](https://i.imgur.com/YlKjnSH.jpg)
884 字
|
4 分钟
Cover Image of the Post
1.7 for-loop 与 json.Unmarshal 性能分析概要
在项目中,常常会遇到循环交换赋值的数据处理场景,尤其是 RPC,数据交互格式要转为 Protobuf,赋值是无法避免的。一般会有如下几种做法:
1024 字
|
5 分钟
Cover Image of the Post
1.2 Go 的 fake-useragent 了解一下
有的网站会根据 User-Agent 的不同,跳转到不同(PC、M)的站点,也有根据版本的不同给出不一样的提示等等,而 User-Agent 的变化更是爬虫里的基础姿势
355 字
|
2 分钟
Cover Image of the Post
1.8 简单围观一下有趣的 //go: 指令
![image](http://wx2.sinaimg.cn/large/006fVPCvly1g1m1bplu3mj30xc0m8myg.jpg)
1023 字
|
5 分钟
Cover Image of the Post
1.5 在 Go 中恰到好处的内存对齐
![image](https://i.imgur.com/SyctY6Q.png)
2693 字
|
13 分钟
Cover Image of the Post
1.3 用 Go 来了解一下 Redis 通讯协议
Go、PHP、Java... 都有那么多包来支撑你使用 Redis,那你是否有想过
1088 字
|
5 分钟
Cover Image of the Post
Go1.13 defer 的性能是如何提高的?
最近 Go1.13 终于发布了,其中一个值得关注的特性就是 defer 在大部分的场景下性能提升了30%,但是官方并没有具体写是怎么提升的,这让大家非常的疑惑。而我因为之前写过[《深入理解 Go defer》](https://book.eddycjy.com/golang/defer/defer.
1133 字
|
6 分钟
1.1 聊一聊,Go 的相对路径问题
Golang 中存在各种运行方式,如何正确的引用文件路径成为一个值得商议的问题
1176 字
|
6 分钟
Cover Image of the Post