Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'mrab': 0.05; 'subject:Python': 0.06; 'portions': 0.09; 'replied': 0.09; 'rewrite': 0.09; 'python': 0.11; 'extension,': 0.16; 'itself,': 0.16; 'limiting': 0.16; 'numpy': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'sort': 0.25; "i've": 0.25; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '20%': 0.31; 'fixing': 0.31; 'post.': 0.31; 'subject:what': 0.31; 'fri,': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'should': 0.36; 'received:209': 0.37; 'performance': 0.37; 'to:addr:python-list': 0.38; 'itself': 0.39; 'reported': 0.39; 'to:addr:python.org': 0.39; 'improved': 0.60; 'identify': 0.61; 'john': 0.61; 'within': 0.65; 'boost': 0.70; 'increase': 0.74; 'compiling': 0.84; 'subject:latest': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=dwsmJYbJnncHIkt7KxuPkBn881ALpJBet4L/4mF03hs=; b=pzwPwkuMy1Je/cd3l+BI4MpR8ABi5i9AkkTD9glClPDVfgbwgetaRG4Zow/u/oNTJl 12VnMyqxjEgdFZqPc0rtWJyagzSYlBW/hlUbqtlXfEpl91RSoh61TrMlME1423V/9eZ+ aPOUpXzNrXHPyCKiIFa7TaMipueqsMaxMGroFFN4ZTZl6aVQyoYF+LMk5izcWytwH1jN laREiCQKw+ij2DMKCShwoOglGEP9rw+laLJY4HWWnvyyDh9paGusuxys6b0FarlNUcUe Y/UmOxGTvNr47BbITAWii4g/9G4+W0WQMdeJbl4MhS/vcy3S2eLd/vFMRXkPgTiZEU/A N5LQ== X-Received: by 10.66.121.227 with SMTP id ln3mr15999963pab.165.1365183181561; Fri, 05 Apr 2013 10:33:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <590d71e1-5f78-475e-a5bc-8210694a7616@googlegroups.com> References: <6ac24546-6cc6-4a01-9fa6-3b52d64484e3@googlegroups.com> <590d71e1-5f78-475e-a5bc-8210694a7616@googlegroups.com> From: Ian Kelly Date: Fri, 5 Apr 2013 11:32:21 -0600 Subject: Re: JIT compilers for Python, what is the latest news? To: Python 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365183190 news.xs4all.nl 6976 [2001:888:2000:d::a6]:50542 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42841 On Fri, Apr 5, 2013 at 2:39 AM, John Ladasky w= rote: >> 2) Rewrite some key portions in C, possibly using Cython (as MRAB sugges= ted). > > And as I replied to MRAB, my limiting code is within Numpy. I've taken c= are to look for ways that I might have been using Numpy itself inefficientl= y (and I did find a problem once: fixing it tripled my execution speed). B= ut I would like to think that Numpy itself, since it is already a C extensi= on, should be optimal. That doesn't seem to follow from your original post. Because Numpy is a C extension, its performance would not be improved by psyco at all. The 20% performance increase that you reported must have been a result of the JIT compiling of some Python code, and if you can identify that and rewrite it in C, then you may be able to see the same sort of boost you had from psyco.