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: 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: References: From: Ian Kelly Date: Tue, 3 Jul 2012 17:06:10 -0600 Subject: Re: Why site-packages? To: Dan Stromberg Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, Jul 3, 2012 at 4:38 PM, Dan Stromberg 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.