Posted in

为什么benchmark显示strings.Repeat(“a”, 1e6)回文判定慢300ms?——深度解析Go runtime.stringStruct内存布局与cache line伪共享

第一章:Go语言判断回文串的基准 … 为什么benchmark显示strings.Repeat(“a”, 1e6)回文判定慢300ms?——深度解析Go runtime.stringStruct内存布局与cache line伪共享Read more

Posted in

Go结构体字段对齐陷阱(struct{}占位失效、cache line伪共享):L3缓存命中率下降42%的案例复盘

第一章:Go结构体字段对齐陷阱( … Go结构体字段对齐陷阱(struct{}占位失效、cache line伪共享):L3缓存命中率下降42%的案例复盘Read more

Posted in

金融级Go交易网关延迟突增43ms根源锁定:Intel CPU TSX事务中大小端指令重排序导致的cache line伪共享

第一章:金融级Go交易网关延迟突 … 金融级Go交易网关延迟突增43ms根源锁定:Intel CPU TSX事务中大小端指令重排序导致的cache line伪共享Read more