Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; '"this': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'interpreter': 0.05; 'say,': 0.05; 'subject:Python': 0.06; 'pypy': 0.07; 'difference,': 0.09; 'executable': 0.09; 'handful': 0.09; 'lawrence': 0.09; 'occasionally': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'things,': 0.09; 'developer': 0.10; 'python': 0.11; 'gui': 0.12; 'language.': 0.14; "wouldn't": 0.14; '(now': 0.16; 'caveats': 0.16; 'pypy?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'work"': 0.16; 'apps': 0.16; 'language': 0.16; 'wrote:': 0.18; 'app': 0.19; 'possible,': 0.19; 'thanks.': 0.20; 'written': 0.21; 'header:User-Agent:1': 0.23; 'url:moin': 0.24; '---': 0.24; 'question': 0.24; 'sort': 0.25; "i've": 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; "i'm": 0.30; 'work.': 0.31; 'getting': 0.31; 'url:wiki': 0.31; '(perhaps': 0.31; 'with,': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'quite': 0.32; 'url:python': 0.33; 'sense': 0.34; 'there,': 0.34; "i'd": 0.34; 'advice': 0.35; 'really': 0.36; 'described': 0.36; 'url:org': 0.36; 'application': 0.37; 'performance': 0.37; 'sometimes': 0.38; 'others.': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'major': 0.40; 'even': 0.60; 'free': 0.61; 'viruses': 0.61; 'protection': 0.63; 'hear': 0.63; 'such': 0.63; 'our': 0.64; 'love': 0.65; 'here': 0.66; 'antivirus': 0.68; 'approaches': 0.68; 'improvements': 0.68; '"just': 0.84; 'gains': 0.84; 'hood': 0.84; 'subject:State': 0.84; 'thing,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: State of speeding up Python for full applications Date: Thu, 26 Jun 2014 18:12:39 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-5-57.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-Antivirus: avast! (VPS 140626-1, 26/06/2014), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 63 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1403802776 news.xs4all.nl 2946 [2001:888:2000:d::a6]:48719 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73626 On 26/06/2014 17:49, CM wrote: > I'm reposting my question with, I hope, better > formatting: > > > I occasionally hear about performance improvements > for Python by various projects like psyco (now old), > ShedSkin, Cython, PyPy, Nuitka, Numba, and probably > many others. The benchmarks are out there, and they > do make a difference, and sometimes a difference on > par with C, from what I've heard. > > What I have never quite been able to get is the > degree to which one can currently use these > approaches to speed up a Python application that > uses 3rd party libraries...and that the approaches > will "just work" without the developer having to > know C or really do a lot of difficult under-the- > hood sort of work. > > For examples, and considering an application > written for Python 2.7, say, and using a GUI > toolkit, and a handful of 3rd party libraries: > > > - Can you realistically package up the PyPy > interpreter and have the app run faster with PyPy? > And can the application be released as a single file > executable if you use PyPy? > > - Can you compile it with Nuitka to C? > > I've had the (perhaps overly pessimistic) sense > that you still *can't* do these things, because > these projects only work on pure Python, or if > they do work with other libraries, it's always > described with major caveats that "I wouldn't > try this in production" or "this is just a test" > sort of thing, such as PyPy and wxPython. > > I'd love to know what's possible, since getting > some even modest performance gains would probably > make apps feels snappier in some cases, and yet I > am not up for the job of the traditional advice > about "re-writing those parts in C". > > Thanks. > Have you tried everything listed here https://wiki.python.org/moin/PythonSpeed/PerformanceTips ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com