ZenQ icon indicating copy to clipboard operation
ZenQ copied to clipboard

cpu 100%

Open chenfeisoft opened this issue 1 year ago • 1 comments

cpu 100% even no data is processing

chenfeisoft avatar Mar 14 '23 03:03 chenfeisoft

@chenfeisoft this is by design. The goroutine calling Read() polls continuously (CPU spin wait) to check if data is available or not. The queue is optimized for lowest possible latency.

alphadose avatar Mar 14 '23 04:03 alphadose