-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Description
Hi,
With latest released pyopenssl, cryptography and cffi "import OpenSSL" takes about 0.5s on a modern i7 CPU with SSD (OS X):
In [1]: %time import OpenSSL
CPU times: user 496 ms, sys: 19.7 ms, total: 516 ms
Wall time: 511 ms
It used to be much faster in pyOpenSSL 0.13.1:
In [1]: %time import OpenSSL
CPU times: user 1.45 ms, sys: 1.81 ms, total: 3.26 ms
Twisted uses OpenSSL, so 0.5s is a startup delay that every Twisted-based software started to pay. It is quite noticable for command-line tools (e.g. Scrapy command line script).
The main contributor to this is cryptography's build_ffi function which uses cffi. I'm not sure how to fix that.
Metadata
Metadata
Assignees
Labels
No labels