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

Update prime_counting example to demonstrate limiting the message rate #453

Open
mdickinson opened this issue Jul 26, 2021 · 0 comments
Open
Labels
component: documentation Issues related to developer and user documentation

Comments

@mdickinson
Copy link
Member

The bug observed in #442 appears to be at least partly due to a buggy release of PySide2, which was unable to handle too many requests efficiently.

However, even with a non-buggy PySide2, it would be easy to overwhelm the main thread with too many progress messages from a background thread. It would be worth updating the prime_counting example to demonstrate how to implement a simple rate-limiting feature on the progress messages (only send a message if no message was sent within the last 0.1 seconds, say).

@mdickinson mdickinson added the component: documentation Issues related to developer and user documentation label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: documentation Issues related to developer and user documentation
Projects
None yet
Development

No branches or pull requests

1 participant