-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Investigate users with slow import time, and attempt to mitigate in future releases #4315
Comments
@methane can you share how you generated that? |
This is produced by patched Python. |
Hi |
Is pyOpenSSL installed? |
>Is pyOpenSSL installed?
If so, could you try uninstall it? |
OK. Maybe, this part causes slowdown. |
@NielsDa historically speaking |
What is version of your pyOpenSSL and cryptography? The "fix" is to uninstall them (pyOpenSSL and cryptography) |
@NielsDa then it seems there's an issue with the configuration of FreeNAS and that should be brought to the attention of that project's maintainers. |
To quantify just how slow it is (it hasn't been mentioned in this thread yet):
Four hundred milliseconds. That's a good reason to find a different library to use (or write it from scratch -- all I need is some GET requests). For comparison, Tested on Debian Buster with
My version of the package |
I tested with clean virtualenv:
|
And on Ubuntu 17.10:
I suspect that something wrong in your environment. |
I'd say >100ms is still ridiculously slow and a good reason to find another library. It's not an order of magnitude off from my 400ms in py3. (My laptop is otherwise very fast with a good CPU and SSD. Something might be wrong with my setup (Debian Buster is currently in "testing" after all), but I can at least tell that it's not the hardware. And at any rate, 100ms is still ridiculous.) |
It's difficult to reduce the 100ms. About 60ms of the 100ms is from stdlib's http module.
|
@lgommans I appreciate that you feel that it's unacceptable. Repeating that sentiment, however, simply won't magically make it faster. If you have something constructive to contribute, by all means continue. If you're going to keep repeating yourself, however, I'd like to point out that there are 1,274 people all getting notifications (of some sort, some including email) about your opinions on the matter. I'm going to take a guess and say that they now have a firm understanding of your position. |
@sigmavirus24 The new information I was trying to add was an actual number, which wasn't posted before in this thread. Doing this in fact revealed that my case is exceptionally slow, so if it turns out not to be an isolated issue, you now have someone to ask in case you want to have someone run tests on such a system. I appreciate that you feel this was not worth reading for over a thousand people. There aren't a thousand comments so I didn't think to check, but there are actually 4 other participants mentioned on top. Even had I thought of it, I could not have known that >1000 people receive a CC of this. This concept is new to me (whatever concept this is, anyway). Sorry for that. I guess I'll refrain from trying to participate in this project any further because I might be inadvertently talking to thousands of hidden people at the same time, who will become annoyed at getting a natural conversation copied over to their inbox and will post snarky remarks rather than reaching out privately (as to not spam those people further) and letting me know (not in front of the whole group) that there is something I am unaware of. I'm going to take a guess and say you're not aware of how your comment might make people (who come across this thread, let alone to whom it was directed) think twice about adding something that they think is valuable but might, perhaps, not be worth reading for over a thousand people which may or may not be getting it in their inbox. |
We've removed the mandatory requirement on two of the heaviest libraries in our dependency tree (pyOpenSSL and idna). If import time is still not up to standards we should reopen a new issue investigating the latest performance. |
Letter from a fan:
This pretty much sums up many people's perception of Requests, and I'd like for us to fix this — be it pyopenssl's fault or not.
The text was updated successfully, but these errors were encountered: