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

Optimization: add setting for tqdm mininterval #108

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

vpratz
Copy link
Contributor

@vpratz vpratz commented Nov 7, 2023

When we do many iterations per second, the load of printing updates with tqdm can become a significant speed factor. By using mininterval and setting refresh=False in tqdm.set_postfix_str, we can control the update rate, thereby reducing the load. For now, I set it as TQDM_MININTERVAL=0.1 in the settings, but this can be changed according to how smooth we want the updates to be.

@stefanradev93
Copy link
Owner

Great idea, thanks, Valentin!

@stefanradev93 stefanradev93 merged commit 3ade306 into stefanradev93:Development Nov 7, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants