Posted in Go语言基础和工具链cgo中C字符串→Go string的零拷贝转换法(unsafe.String+uintptr绕过GC逃逸分析) 第一章:cgo中C字符串→Go … cgo中C字符串→Go string的零拷贝转换法(unsafe.String+uintptr绕过GC逃逸分析)Read more by 性能优化专家|2026年2月11日|strings.Fields, 零拷贝转换技巧, C字符串转Go, unsafe.String优化, cgo字符串转换, uintptr绕过GC
Posted in Go语言基础和工具链Go嵌套map在CGO边界穿越时的ABI陷阱:C字符串→Go string→map[string]interface{}→C结构体的6次内存复制链 第一章:Go嵌套map在CGO边 … Go嵌套map在CGO边界穿越时的ABI陷阱:C字符串→Go string→map[string]interface{}→C结构体的6次内存复制链Read more by Gopher老张|2026年1月25日|Go嵌套map遍历, CGO依赖库缺失, ABI陷阱, C字符串转Go, strings.Fields, 内存复制优化, map[string]interface{}性能问题