Posted in

Go没有智能指针?错!揭秘Go 1.22+ runtime/internal/atomicptr与sync.Pool协同实现的4层智能引用管控机制

第一章:Go没有智能指针?一场被 … Go没有智能指针?错!揭秘Go 1.22+ runtime/internal/atomicptr与sync.Pool协同实现的4层智能引用管控机制Read more

Posted in

Go语言算法时空复杂度盲区扫描:slice append、make预分配、sync.Pool复用——3个被99%人忽略的O(1)→O(n)跃迁点

第一章:Go语言算法时空复杂度盲 … Go语言算法时空复杂度盲区扫描:slice append、make预分配、sync.Pool复用——3个被99%人忽略的O(1)→O(n)跃迁点Read more

Posted in

Go函数式并发原语:用func() error + sync.WaitGroup + context.WithTimeout重写传统worker pool(吞吐提升2.8倍实测)

第一章:Go函数式并发原语的核心 … Go函数式并发原语:用func() error + sync.WaitGroup + context.WithTimeout重写传统worker pool(吞吐提升2.8倍实测)Read more

Posted in

Go sync.Pool滥用导致GC飙升?这3本深入runtime/mfinal与内存池协同机制的书,全网仅2家出版社授权发行

第一章:Go并发编程的核心范式与 … Go sync.Pool滥用导致GC飙升?这3本深入runtime/mfinal与内存池协同机制的书,全网仅2家出版社授权发行Read more

Posted in

Go逐行处理文件的并发模型选型指南(worker pool vs pipeline vs async channel)——百万行/秒实测基准

第一章:Go逐行处理文件的核心挑 … Go逐行处理文件的并发模型选型指南(worker pool vs pipeline vs async channel)——百万行/秒实测基准Read more