-
Notifications
You must be signed in to change notification settings - Fork 25
Fix the await_ready polling rate
#415
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
Conversation
Turns out we can use a fake clock fairly easily here, and we have to *something* because we get a Mock which doesn't work at all otherwise.
…m bases in python3
|
Thanks a lot for this clever solution. Even as a temporary fix, this is a big improvement over the previous behavior (and I got to learn about One thing I noticed here (and please correct me if I'm misunderstanding) is that the result of Merging now... Thanks again! |
Hm. I didn't test that case so we should assume it is broken. :) However, considering this code from that propagation is exactly the intent. If There's plenty of places things could go wrong there so I should have tested it... |
Ooh... I did not know that a |
Fixes #414
This brings CPU usage all the way down to 30% - comparable to where pulseaudio or Firefox idles :( I guess that's what passes for industry standard now.
Maybe at some future point we can actually get rid of polling to address this the rest of the way.