Package: python-cryptography Version: 1.7.1-2 Severity: important Dear Maintainer,
the loading of the cryptography.hazmat.backends module is very slow on my stretch machine: david@stretch:~$ time python -c "import cryptography.hazmat.backends" real 0m0.586s user 0m0.540s sys 0m0.040s For the record, I've tested the latest version in a virtualenv (using system-site-packages to ensure we only check the update of cryptography): david@stretch:~$ virtualenv --system-site-packages /tmp/tst [...] david@stretch:~$ /tmp/tst/bin/pip install "cryptography>1.8" [...] david@stretch:~$ time /tmp/tst/bin/python -c "import cryptography.hazmat.backends" real 0m0.045s user 0m0.036s sys 0m0.004s Same tests on a jessie machine: david@jessie:~$ dpkg -l python-cryptography [...] ii python-cryptography 0.6.1-1 amd64 david@jessie:~$ time python -c "import cryptography.hazmat.backends" real 0m0.249s user 0m0.112s sys 0m0.048s using python-cruptography from jessie-backports: david@jessie:~$ sudo apt-get install python-cryptography -t jessie-backports [...] Setting up python-cryptography (1.3.4-1~bpo8+2) ... david@jessie:~$ time python -c "import cryptography.hazmat.backends" real 0m0.567s user 0m0.440s sys 0m0.052s and using the latest versions in a venv: david@jessie:~$ virtualenv --system-site-packages /tmp/tst [...] david@jessie:~$ /tmp/tst/bin/pip install "cryptography>1.8" [...] david@jessie:~$ time /tmp/tst/bin/python -c "import cryptography.hazmat.backends" real 0m0.117s user 0m0.052s sys 0m0.028s So I guess python-cruptography might need to be updated to latest (1.8.1 as I write this). The patch in the debian package might also be the culprit. -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-cryptography depends on: ii libc6 2.24-9 ii libssl1.1 1.1.0e-1 ii python 2.7.13-2 pn python-cffi-backend-api-max <none> pn python-cffi-backend-api-min <none> ii python-enum34 1.1.6-1 ii python-idna 2.2-1 ii python-ipaddress 1.0.17-1 ii python-pyasn1 0.1.9-2 ii python-setuptools 33.1.1-1 ii python-six 1.10.0-3 pn python:any <none> python-cryptography recommends no packages. Versions of packages python-cryptography suggests: pn python-cryptography-doc <none> pn python-cryptography-vectors <none> -- no debconf information