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

Poor performance #133

Closed
pati-ni opened this issue Jan 31, 2024 · 1 comment
Closed

Poor performance #133

pati-ni opened this issue Jan 31, 2024 · 1 comment

Comments

@pati-ni
Copy link

pati-ni commented Jan 31, 2024

If the loop is fast, tick() function is adding lots of overhead!

library(progress)
pb = progress_bar$new(total=100000)
system.time({for(i in 1:100000){pb$tick()}})

   user  system elapsed
 10.394   0.010  10.448

Therefore, this package is not very useful when the loop contains inexpensive operation. Please a faster path for these scenarios or warn users when the total is a big number.

@gaborcsardi
Copy link
Member

Choose a different package then, e.g. https://cli.r-lib.org/reference/index.html#progress-bars

@pati-ni pati-ni closed this as completed Jan 31, 2024
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

No branches or pull requests

2 participants