[Distutils] For maximum performance, Python packages are best installed as zip files.
Chris Barker
chris.barker at noaa.gov
Mon Apr 11 18:05:07 EDT 2016
one other note: on systems with aggressive virus scanning, python startup
can ber REALLY slow.
_maybe_ zipped packages would help with that. (or maybe not -- I haven't
tested)
-CHB
On Mon, Apr 11, 2016 at 6:41 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 11 April 2016 at 23:30, Ionel Cristian Mărieș <contact at ionelmc.ro>
> wrote:
>
>>
>> On Mon, Apr 11, 2016 at 4:00 PM, Paul Moore <p.f.moore at gmail.com> wrote:
>>
>>> you wouldn't typically install
>>> each application in its own directory and add that directory to
>>> $PATH.], so why do the equivalent with sys.path?
>>>
>>
>> Funny that Nixos and Redhat's SCLs do exactly that with $PATH other
>> vars:-)
>>
>
> For SCLs, we don't really expect you to have dozens active at once, though
> - usually only 1 or 2 for any given process (language runtime + web server).
>
> In terms of this thread, though, the advice in the setuptools docs is
> indeed out of date - the downside of making sys.path longer overwhelms the
> benefit of zipimporter loading content listings into memory, especially in
> Python 3, which also caches normal directory listings for sys.path entries
> since the switch to importlib in 3.3 (the caching avoided a slowdown when
> importing from local disks, and provided a dramatic speed *up* when
> importing from network file shares).
>
> Cheers,
> Nick.
>
> --
> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160411/cc95080b/attachment.html>
More information about the Distutils-SIG
mailing list