Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu 100% #14

Open
chenfeisoft opened this issue Mar 14, 2023 · 1 comment
Open

cpu 100% #14

chenfeisoft opened this issue Mar 14, 2023 · 1 comment

Comments

@chenfeisoft
Copy link

cpu 100% even no data is processing

@alphadose
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants