go-queue icon indicating copy to clipboard operation
go-queue copied to clipboard

High-performance lock-free queue (Disruptor 1400/s)

Results 4 go-queue issues
Sort by recently updated
recently updated
newest added

### code: ``` func Benchmark_Queue(b *testing.B) { b.StopTimer() queue := NewQueue(40960) wg := &sync.WaitGroup{} var count uint32 b.ResetTimer() b.StartTimer() wg.Add(20) for i := 0; i < 10; i++ { go...

你好,根据你的实现,我加了一些注释和小改动 https://github.com/bighunter513/goqueue 欢迎指正

When the max num value, it will overflow example: ``` var m uint32 = 4294967295 log.Println(minRoundNumBy2(m)) ``` then, you will get 0