Path: csiph.com!x330-a1.tempe.blueboxinc.net!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Does': 0.04; 'interpreter': 0.05; 'script,': 0.07; 'python': 0.08; 'difference,': 0.09; 'interpreter.': 0.09; 'subject:py2app': 0.09; '"frozen"': 0.16; '11:36': 0.16; 'exe': 0.16; 'know;': 0.16; 'pyinstaller': 0.16; 'cc:addr:python-list': 0.16; 'advance': 0.17; 'wed,': 0.17; 'wrote:': 0.18; 'loading': 0.18; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'though.': 0.23; 'cc:2**0': 0.24; 'libraries': 0.24; 'times,': 0.24; 'load': 0.26; 'expect': 0.26; '(and': 0.28; 'script': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'nov': 0.29; 'pm,': 0.29; 'subject:?': 0.31; 'thanks': 0.31; 'actual': 0.32; 'received:209.85.161.46': 0.32; 'received:mail-fx0-f46.google.com': 0.32; "can't": 0.32; 'running': 0.35; 'received:209.85.161': 0.36; 'question': 0.36; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'bunch': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'being': 0.39; 'files': 0.39; 'received:209': 0.40; 'might': 0.40; 'difference': 0.40; '2011': 0.61; 'your': 0.61; 'subject': 0.62; 'mail.': 0.66; 'plus': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=i0o09+2n/1Ww7nprpDt4nZigqGiWhdD2l7b5OYHGm7Q=; b=YUpMIk/IiTJPysVoSGzSCsAGMEzxjVnhJ7IlUMuSCkCqI4NPBzHcqirXcMSapAP50P 3rf020YRf2zXiU7OODfRUuZTcd1K/JAic/uq88gyi3/pRaGVtx85cxdiMUx6ccDDxwxO R1C5EkfqPHAHH30fLyYqygQUQmxTiE8+ia7UI= MIME-Version: 1.0 In-Reply-To: <0F07657D-9C87-417E-ADCB-150EB5040CAF@gmail.com> References: <0F07657D-9C87-417E-ADCB-150EB5040CAF@gmail.com> From: Ian Kelly Date: Thu, 24 Nov 2011 01:04:02 -0700 Subject: Re: Does py2app improves speed? To: Ricardo Mansilla Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1322121875 news.xs4all.nl 6893 [2001:888:2000:d::a6]:59539 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16153 On Wed, Nov 23, 2011 at 11:36 PM, Ricardo Mansilla wrote: > Hi everyone.. > My question is exactly as in the subject of This Mail. > I have made a Python =A0script which is to slow and i have heard (and com= mon sense also suggest) that if you use some libraries to "frozen" the scri= pt the performance improves substantially. So I need to know; is This a myt= h or it is a fact? > Thanks in advance for your time. I would not expect any speedup. You might see some difference in loading times, but the actual program being run is still just the Python interpreter running your script, and that's not going to run any faster. I had a coworker who wrapped up one of his applications with py2exe / pyInstaller on the theory that since his program would be run from a network share, it would be faster to load a single exe over the network than a bunch of .pyc files plus the files needed to run the interpreter. I can't tell any difference, though. Cheers, Ian