Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42794

Re: JIT compilers for Python, what is the latest news?

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 <rosuav@gmail.com>
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 <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.125.1365150463.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Apr 5, 2013 at 1:29 PM, John Ladasky <john_ladasky@sbcglobal.net> wrote:
> I'm revisiting a project that I haven't touched in over a year.  It was written 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 computationally-intensive routine which occupied most of my CPU cycles, and always received 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 would 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-04 19:29 -0700
  Re: JIT compilers for Python, what is the latest news? MRAB <python@mrabarnett.plus.com> - 2013-04-05 03:39 +0100
    Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 01:34 -0700
      Re: JIT compilers for Python, what is the latest news? Devin Jeanpierre <jeanpierreda@gmail.com> - 2013-04-05 14:37 -0400
      Re: JIT compilers for Python, what is the latest news? Joshua Landau <joshua.landau.ws@gmail.com> - 2013-04-06 11:23 +0100
    Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 01:34 -0700
  Re: JIT compilers for Python, what is the latest news? Chris Angelico <rosuav@gmail.com> - 2013-04-05 19:27 +1100
    Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 01:39 -0700
      Re: JIT compilers for Python, what is the latest news? Chris Angelico <rosuav@gmail.com> - 2013-04-05 19:49 +1100
      Re: JIT compilers for Python, what is the latest news? Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-05 11:32 -0600
        Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 11:13 -0700
          Re: JIT compilers for Python, what is the latest news? Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-05 13:05 -0600
        Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 11:13 -0700
      Re: JIT compilers for Python, what is the latest news? Robert Kern <robert.kern@gmail.com> - 2013-04-05 10:46 +0100
    Re: JIT compilers for Python, what is the latest news? John Ladasky <john_ladasky@sbcglobal.net> - 2013-04-05 01:39 -0700
      Re: JIT compilers for Python, what is the latest news? ptb <petertbrady@gmail.com> - 2013-04-05 05:18 -0700
  Re: JIT compilers for Python, what is the latest news? Ian Foote <ian@feete.org> - 2013-04-05 13:50 +0100
  Re: JIT compilers for Python, what is the latest news? Joshua Landau <joshua.landau.ws@gmail.com> - 2013-04-06 11:27 +0100
  Re: JIT compilers for Python, what is the latest news? rusi <rustompmody@gmail.com> - 2013-04-06 08:45 -0700
  Re: JIT compilers for Python, what is the latest news? Stefan Behnel <stefan_ml@behnel.de> - 2013-04-06 21:41 +0200

csiph-web