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

Busy loop in SelectPoller that is consuming a lot of CPU #87

Closed
sk89q opened this issue Apr 8, 2013 · 2 comments
Closed

Busy loop in SelectPoller that is consuming a lot of CPU #87

sk89q opened this issue Apr 8, 2013 · 2 comments

Comments

@sk89q
Copy link

sk89q commented Apr 8, 2013

The change in #83 changes SelectPoller.poll() to return an empty list, but it makes a busy loop that uses a lot of CPU as it continually loops over new empty arrays.

@Lawouach
Copy link
Owner

Damn, indeed. I will have a look asap.

@Lawouach
Copy link
Owner

I'm forcing a pause of up to self.timeout so that we get a consistent behavior.

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

No branches or pull requests

2 participants