Posted in 问题排查与答疑为什么C++ std::string_view传入Go后中文变乱码?UTF-8边界对齐、NUL截断、Small String Optimization三重陷阱解析 第一章:为什么C++ std:: … 为什么C++ std::string_view传入Go后中文变乱码?UTF-8边界对齐、NUL截断、Small String Optimization三重陷阱解析Read more by 后端小能手|2026年2月9日|strings.Fields, C++与Go对比, Go语言中文乱码, smallint, Optimization, UTF-8边界对齐, std::string_view, NUL截断
Posted in Go语言基础和工具链Go 1.21+中map[string]struct字段修改行为变更预警!runtime对small struct的3处优化导致兼容性断裂 第一章:Go 1.21+中map … Go 1.21+中map[string]struct字段修改行为变更预警!runtime对small struct的3处优化导致兼容性断裂Read more by Go语言笔记|2026年1月28日|1.21.4新特性, Runtime优化, smallint, Go动态加载, 兼容性断裂, make(map[string]struct{}), Go语言struct嵌套map
Posted in Go语言基础和工具链Go map从“哈希表”到“混合索引结构”:1.24中small map(<8 entries)自动切换为array-backed实现(源码级验证) 第一章:Go 1.24 map设 … Go map从“哈希表”到“混合索引结构”:1.24中small map(<8 entries)自动切换为array-backed实现(源码级验证)Read more by Go语言狂热者|2026年1月27日|混合索引结构, array-backed, Map线程安全, smallint, Go动态加载, 哈希表源码分析
Posted in Go语言基础和工具链Go map[string]的key字符串超过128字节就变慢?用perf record -e cycles:u验证small string优化失效边界 第一章:Go map[strin … Go map[string]的key字符串超过128字节就变慢?用perf record -e cycles:u验证small string优化失效边界Read more by Golang修行笔记|2026年1月26日|smallint, Go动态加载, ResponseRecorder, perf火焰图, 字符串key性能, cycles事件, Map线程安全, Go语言数组转String优化
Posted in 问题排查与答疑Go语言处理数据库tinyint、smallint的坑,99%人都没注意到 第一章:Go语言数据库查询整形的 … Go语言处理数据库tinyint、smallint的坑,99%人都没注意到Read more by 容器守护者|2025年9月23日|Go语言编程实践, 反射类型处理, 数组与数据库, tinyint, smallint