摘要: 零拷贝 项目之余,翻看Gin 的源码,看到下面两个函数,都不需要进行拷贝。那么下来我们就来分析下它是如何实现的。 1、基本数据结构 // StringToBytes converts string to byte slice without a memory allocation. func Str 阅读全文
posted @ 2022-03-07 10:39 roverliang 阅读(684) 评论(1) 推荐(1) 编辑