-
Notifications
You must be signed in to change notification settings - Fork 136
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
telnetlib several times slower than the one from stdlib #238
Comments
And some debugs from read_until:
|
From what I can see, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
with upcoming planned deletion of telnetlib from stdlib (https://peps.python.org/pep-0594/#telnetlib) I wanted to try out using any replacement. telnetlib3 was too complicated to be used, so I wanted to use Exscript.
The interface was very similar to stdlib version, with the exception of replacing byte strings with strings in some places.
So I went ahead and replaced the code.
After the change and adjusting my calls I have discovered that the code works several times slower.
Sample code connecting to Cisco IOS which originally took 4 seconds, now takes roughly 40 seconds to finish.
My code uses only open_connection, write and read_until.
It seems that there's additional unexpected 3 seconds delay at the end of write.
Python version: 3.8-32
OS: Windows
Imports:
Reproducible: always
If there's an incentive in debugging and fixing that, I can provide more debugs and stripped down code, right now it's a part of more complex tool.
The text was updated successfully, but these errors were encountered: