Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.065 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'mrab': 0.05; 'subject:Python': 0.06; '32-bit': 0.09; 'executed': 0.09; 'portions': 0.09; 'rewrite': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'written': 0.21; 'exists': 0.24; 'mathematical': 0.24; "haven't": 0.24; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; '20%': 0.31; 'lot.': 0.31; 'routine': 0.31; 'subject:what': 0.31; 'critical': 0.32; 'run': 0.32; 'fri,': 0.33; 'guess': 0.33; 'subject:the': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'ubuntu': 0.36; 'subject:?': 0.36; 'two': 0.37; 'project': 0.37; 'performance': 0.37; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'days': 0.60; 'most': 0.60; 'year.': 0.61; 'john': 0.61; 'making': 0.63; 'increase': 0.74; 'occupied': 0.84; 'order:': 0.84; 'subject:latest': 0.84; 'touched': 0.84; 'try,': 0.84; 'execution,': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=LdSI6t1TlPJKQjMhaMhyktVOip1c2r6d2ecDb77uufs=; b=a03tHSPT3sTMxaWgh6Av8SZMQvIm2f415uzsCHTvQIFv6DheZ2/I46hxJMirWjA24V WR5D2OwqzYghlXaesJRYAwcjZnE8vBLABtOt5VxQelwtCFwe+ymlUTg0RQFk5MO6PBQx ViOBSX8G7Ds6fy6aRd7suWlCICrpbiqEvHpsUhdRhHeMYYYYyUMZ8XRiH6UR7X5EBrg/ 2wkbGzppivm1Zj0Mf5eH0NIUkezrRJi2VHRGUlGTqMGeprVKzwGgX+juOl6uXmN2jVpY drCdQEXdVA1wjDleg4PcYGKWgOkZeg9AjVhpBOuFPgisLJUTGXMxI4HTRfX/1+dIv4Ou ZIHw== MIME-Version: 1.0 X-Received: by 10.52.67.164 with SMTP id o4mr6220583vdt.42.1365150460690; Fri, 05 Apr 2013 01:27:40 -0700 (PDT) In-Reply-To: <6ac24546-6cc6-4a01-9fa6-3b52d64484e3@googlegroups.com> References: <6ac24546-6cc6-4a01-9fa6-3b52d64484e3@googlegroups.com> Date: Fri, 5 Apr 2013 19:27:40 +1100 Subject: Re: JIT compilers for Python, what is the latest news? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365150463 news.xs4all.nl 6886 [2001:888:2000:d::a6]:39041 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42794 On Fri, Apr 5, 2013 at 1:29 PM, John Ladasky w= rote: > I'm revisiting a project that I haven't touched in over a year. It was w= ritten in Python 2.6, and executed on 32-bit Ubuntu 10.10. I experienced a= 20% performance increase when I used Psyco, because I had a computationall= y-intensive routine which occupied most of my CPU cycles, and always receiv= ed the same data type. (Multiprocessing also helped, and I was using that = too.) > > I guess I can live with the 20% slower execution, but sometimes my code w= ould run for three solid days... Two things to try, in order: 1) Can you optimize your algorithms? Three days of processing is... a LOT. 2) Rewrite some key portions in C, possibly using Cython (as MRAB suggested= ). You may well find that you don't actually need to make any language-level changes. If there's some critical mathematical function that already exists in C, making use of it might make all the difference you need. ChrisA