Weijia Jiang

Results 12 comments of Weijia Jiang

And it seems do not support all feature of `jmp` command, ![image](https://user-images.githubusercontent.com/48505670/141614103-996c2a59-ceac-4586-8ed9-d86b865b3b49.png) ref: [wiki-JMP (x86 instruction)](https://en.wikipedia.org/wiki/JMP_(x86_instruction))

Thx for your replying. Your project is awsome. When the code work with memory, I found it does not work well. Such as `mov [0],cx`, cs:ip. The implementation details you...

@slow-zhang @panjf2000 `if len(buf) == 0` is true, we should `return nil,gerrors.ErrIncompletePacket`instead of just `return`. Please see this example of using client in gnet: https://github.com/Spongecaptain/gnet-examples/blob/master/examples/custom_codec/protocol/pb.go#L95, it may help.

> 您好 您这个系列的 Mysql 的零拷贝技术好像看不到了 你能给出一个 URL 吗?我看看问题出在哪里。

> > > 您好 您这个系列的 Mysql 的零拷贝技术好像看不到了 > > > > > > 你能给出一个 URL 吗?我看看问题出在哪里。 > > https://spongecaptain.cool/zerocopyofmysql > > 也就是这一篇文章的底部的引用的第 8 个文章 https://spongecaptain.cool/SimpleClearFileIO/2.%20DMA%20%E4%B8%8E%E9%9B%B6%E6%8B%B7%E8%B4%9D%E6%8A%80%E6%9C%AF.html 谢谢。 已经修正。 页面刷新后应该能路由至正确的文章。

@tidwall I left out the for loop, thanks you a lot.

yet, Use go stub instead, or use gomonkey on amd64.

本质上 string.Builder 是以空间换时间,如果不进行字符串的拼接,那么 string.Builder 这种非紧凑型设计有内存碎片,而 string 本身是不会有内存碎片(不考虑 CPU 的内存对齐)。

字节对齐这个概念有两处需要强调: 1. CPU 只从对齐的地址开始加载数据(这一点可能遗漏了) 2. CPU 读取块的大小是固定的,通常为 B 的 2 的整数幂次

> * 一些常见做法譬如请求后面加个随机数或者时间戳也是同样的道理,都是为了避免缓存 `其实在 HTTPS 普遍存在的情况下,这个意义不大,因为协商出来的密钥是不一样的,内容就不一样` 这个说法不太正确吧。即使使用 https 协议,如果不使用 mask-key 还是不能够解决请求被猜到的情况。设计不当的代理服务器在面临相同请求时,就会返回相同的缓存,这与是否使用 https 完全没有关系。