Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24841

Re: Why site-packages?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'startup': 0.05; 'mentioned,': 0.07; 'python': 0.09; 'subject:Why': 0.09; 'cc:addr:python-list': 0.10; 'thread': 0.11; '(either': 0.16; '-s,': 0.16; 'cc:name:python list': 0.16; 'comparison.': 0.16; 'thread.': 0.16; 'wrote:': 0.17; 'comparing': 0.17; 'copied': 0.17; 'test.': 0.17; '>>>': 0.18; 'windows': 0.19; 'import': 0.21; 'fraction': 0.22; 'installation': 0.23; 'cc:2**0': 0.23; 'seems': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'appear': 0.26; 'setting': 0.26; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'dan': 0.29; 'measure': 0.29; 'though.': 0.29; 'folder': 0.30; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'test': 0.36; 'should': 0.36; 'does': 0.37; 'two': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'there,': 0.38; 'where': 0.40; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'real': 0.61; 'jul': 0.65; 'informative,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=c/S6jBytjwR7dQL5nScEAJ1DztE7+q+QzqI6DZilnkQ=; b=P+ZAtCiWVysZPyStpgX7jPgJ7V0+d/PEhFJNCLoxSGM5bMjcZAA/hQlMgK5R97AeHb e2erpRWXWlJYgVNfP5iO14ZRW7VCu/j6T7b4wZVxcULJA9tZKb4SG9sUgdCinyvPmjDI b+wh3GQ/QCxNuVFEx0rS4sE/lT8PJg6TlKcYFcQGCmei1IHZlTsGvyWSQN/WSg+qPiCG meD/fkusVm0ibI+ulyLNm69IKEiqy4gAkC+tSnW7z0cNzv8EFApFeFB1hmBN5zB0K4BY v7ieO2lCKn1+s9IYEzLrahaFSIWaZTv40a6ohUkxJIPZQt+3hu1WqXNbeSM+bObqaEHR Kr5g==
MIME-Version 1.0
In-Reply-To <CALwzid=60nkEHPwahfDduOye-rKRO=u5n+XqrhgXAufSrJhavQ@mail.gmail.com>
References <CAGGBd_przF6HtPz5EQ=D8PssmQSda79n=ZwkZKoeQDaz4Dpg8w@mail.gmail.com> <CALwzidnvsU=zT0Vi2ckTNA6pwBbHLb-S34HcXpt1QDwX8rJGWQ@mail.gmail.com> <CAGGBd_rK+D8DE0FkGLSpVbbpZc-YommKKtX_ki2wJOacVVe3Zg@mail.gmail.com> <CALwzidm50L-b1ToHx94bgnHt0j8gUeHJ8Rx6vtDGSBh4NQGmyA@mail.gmail.com> <CAGGBd_pXzL0iZ2eCcT8ntKaopjhJV05j3suOvwiyjEqzHwr=MA@mail.gmail.com> <CALwzid=60nkEHPwahfDduOye-rKRO=u5n+XqrhgXAufSrJhavQ@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Tue, 3 Jul 2012 17:44:05 -0600
Subject Re: Why site-packages?
To Dan Stromberg <drsalists@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc Python List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1768.1341359077.4697.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1341359077 news.xs4all.nl 6957 [2001:888:2000:d::a6]:33054
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24841

Show key headers only | View raw


On Tue, Jul 3, 2012 at 5:06 PM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> On Tue, Jul 3, 2012 at 4:38 PM, Dan Stromberg <drsalists@gmail.com> wrote:
>>> Right now this all seems highly speculative to me.  I think it might
>>> be informative, either to you or to me, to do an actual timing test.
>>> Why don't you try setting up two side-by-side installations of Python,
>>> one with all the site-packages cruft, and one trimmed down to only
>>> what you think should be in there, and see if you can measure a real
>>> difference in startup time?
>>
>> In the original stackoverflow thread I mentioned, there's a speed
>> comparison.
>
> That's just comparing using -S against not using -S, though.  As I
> understand it, you don't want to use -S; you still want to import site
> but just want to pare down your site-packages for a speedup.

I ran a quick test where I copied my Python 2.5 installation on
Windows and cleared out the site-packages folder and ran the test from
the stackoverflow thread.

With crufty site-packages: 0.18s
With empty site-packages: 0.16s
With -S (either installation): 0.10s

So there does appear to be some improvement, but only a fraction of
what I get by using -S.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Why site-packages? Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-03 17:44 -0600

csiph-web