gitalk icon indicating copy to clipboard operation
gitalk copied to clipboard

Go中秘而不宣的数据结构 spmc, 10倍性能于 channel

Open utterances-bot opened this issue 1 year ago • 2 comments

Go中秘而不宣的数据结构 spmc, 10倍性能于 channel

Go 标准库和运行中中,有一些专门针对特定场景优化的数据结构,这些数据结构并没有暴露出来,这个系列就是逐一介绍这些数据结构。 这一次给大家介绍的就是一个 lock-free、高性能的单生产者多消费者的队列:PoolDequeue 和 PoolChain。到底是一个还是两个呢?主要是 PoolDequeue, 它是一个固

https://colobu.com/2024/10/20/go-internal-ds-spmc/

utterances-bot avatar Oct 21 '24 01:10 utterances-bot

一言不发,连肝两篇

xmx avatar Oct 21 '24 01:10 xmx

NewPoolDequeue 是在sync下 export_test.go里 非导出的 你是怎么做的。 golinkname?

xujunhai avatar Oct 22 '24 05:10 xujunhai