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

Performance improvement for determinate progress indicators: poll the atom instead of watching it #26

Open
pmonks opened this issue Nov 7, 2024 · 0 comments

Comments

@pmonks
Copy link
Owner

pmonks commented Nov 7, 2024

Currently, a determinate progress indicator adds a watch on the caller's "progress" atom, which can result in excessive redrawing behaviour if that atom is updated at a high rate (say thousands of times per second).

A better approach would be to simply poll the atom on a (configurable) fixed schedule (say, every 100ms by default), and only redraw if the value has changed.

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

1 participant