-
Notifications
You must be signed in to change notification settings - Fork 61
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
Configurable sleeps #142
Comments
We already have a I'm open to ideas of how we should calculate the sleep. |
If I understand correctly this are two different times though in the sense that if I receive the output I'm looking for 1ms after the first run of the loop I need to wait 100ms to find out, and I incur that 100ms for each back and forth with the shell. This adds up pretty quickly in a test scenario where an |
So if I'm understanding correctly, you don't want to change the timeout, just how long until the process wakes up for it to check if its done, making this closer to a busy loop? |
Yes, but I want to be able to make that choice for myself. I think there are totally valid reasons that not everyone would want something closer to a busy loop. |
Seems reasonable. Thanks for taking the time to clarify the request! |
Hi, I was integrating
rexpect
into a project and found that the sleeps are longer than what we needed. Specifically thesleep
inread_until
is 100ms, and I found that decreasing this to 5ms sped up some of our tests that are usingrexpect
.rexpect/src/reader.rs
Line 287 in be7f1ab
Of course I wouldn't suggest everyone using 5ms, so maybe there's room for configurability? For now I have a fork with that small change.
The text was updated successfully, but these errors were encountered: