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


Groups > comp.lang.python > #24838

Re: Why site-packages?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'startup': 0.05; 'mentioned,': 0.07; 'subject:Why': 0.09; 'cc:addr:python- list': 0.10; 'thread': 0.11; '-s,': 0.16; 'cc:name:python list': 0.16; 'comparison.': 0.16; 'wrote:': 0.17; 'comparing': 0.17; 'test.': 0.17; 'import': 0.21; 'cc:2**0': 0.23; 'seems': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'setting': 0.26; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'dan': 0.29; 'measure': 0.29; 'though.': 0.29; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'two': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'there,': 0.38; '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=FSPht2nr2C4PQ8aGKiBQoC9Nn63vqVQbW2yS3jvInP0=; b=VaGgZPvfdRF9KRekcpIoQ1ckc3VaxkDLqdJD/W2t9QkK6n7Icihnqf0LdeJHpG6IFI oGisoimoQEgc3VUjXWPtdK9WnU+SMoOsRADz2SCcTGWdpr8yYK7XWcP//OlWtkL0681N JZ02V2uWckzWFl5BZO2rfqLFmolTtKUmDUOybG/vUP2ztQi5XCkdGXqxyQP/m5OYGrZ8 sfT7wNL1dxAu+MitFObq2MNZ+iokH/VemLpB1YGjUJmKTCyo5JHgb0aDfSRc7y/IHgkc RIIsmGzppno4dzd+4jubgg46vAi+dlNSd5FtEWlopMHGdQH4nFkxE6YKJTZguimGpYAa zAaA==
MIME-Version 1.0
In-Reply-To <CAGGBd_pXzL0iZ2eCcT8ntKaopjhJV05j3suOvwiyjEqzHwr=MA@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>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Tue, 3 Jul 2012 17:06:10 -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.1766.1341356803.4697.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1341356803 news.xs4all.nl 6905 [2001:888:2000:d::a6]:48884
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24838

Show key headers only | View raw


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.

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:06 -0600

csiph-web