蛮荆Recent content on 蛮荆马上订阅 蛮荆 RSS 更新: https://dbwu.tech/index.xmlsync.Pool Code Reading2023年6月15日 08:00sync.Pool 是 Go 语言标准库中的一个并发安全的对象池,可以用来缓存那些需要重复创建和销毁的对象,从而避免频繁地进行内存分配和回收,降低内存和 GC 压力。本文通过底层源代码来分析 sync.Pool 高性能背后的设计与实现…查看完整文章