-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix constant updating of progressbar #488
Conversation
In other issues I've already lamented how slow lychee is when used without `-n`. This fixes an issue where without `-n`, lychee would take 1 minute instead of 4 seconds to check sentry-docs.
Yeah indicatif is really challenged with many concurrent requests. |
Actually running faster is more important than progress bar looks faster.... |
I assumed so and was happy to make the tradeoff but I can't spot a difference.
…On Fri, Feb 4, 2022, at 15:38, Matthias wrote:
Yeah indicatif is really challenged with many concurrent requests.
Will this change cause the progress bar to "stutter" or is it fine?
—
Reply to this email directly, view it on GitHub <#488 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGMPRPRWGV5DUWN2VW2IG3UZPQHDANCNFSM5NR4DIKA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I might have forgotten to recompile. But I think you should try yiurself and decide if it feels right. We can also set draw-rate to 100 and probably get the same effect |
I will benchmark it tonight. Sounds promising! 😄 |
"cargo" itself updates per 100/500 ticks:
|
i just checked again, and realized I used the wrong units for |
Thanks for adding the comments.
Our progress bar should not be slow. 😆 |
Well not anymore now, that's the point, right? But yeah it's probably unlikely that lychee gets into a situation where steady tick does something... unless it is literally stuck on a single request taking forever. |
yeah, let's keep the steady tick. Users might be confused if the tool is "frozen" when it gets stuck on a slow website. |
Seems like indicatif has their performance story mostly sorted out on master: console-rs/indicatif#363 |
Benchmarks from my machine: |
Thanks @untitaker. 😊 |
In other issues I've already lamented how slow lychee is when used
without
-n
. This fixes an issue where without-n
, lychee would take1 minute instead of 4 seconds to check sentry-docs.