[Distutils] For maximum performance, Python packages are best installed as zip files.
Donald Stufft
donald at stufft.io
Mon Apr 11 07:08:19 EDT 2016
> On Apr 11, 2016, at 7:04 AM, Thomas Güttler <guettliml at thomas-guettler.de> wrote:
>
> From https://pythonhosted.org/setuptools/setuptools.html#setting-the-zip-safe-flag
>
> > For maximum performance, Python packages are best installed as zip files.
>
> What kind of performance improvement is this?
>
> Is this improvement really measurable?
>
> What improvement numbers do you get?
>
I’m not sure if that is still the case with modern SSDs, but I think the idea is that by putting everything inside of zip files you reduce the number of stat calls that Python needs to do (they flip side of this is that pkg_resources is incredibly slow because it needs to issue a ton of stat calls on import).
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160411/178de608/attachment.sig>
More information about the Distutils-SIG
mailing list