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


Groups > comp.lang.python > #42933

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

From Robert Kern <robert.kern@gmail.com>
Subject Re: JIT compilers for Python, what is the latest news?
Date 2013-04-05 10:46 +0100
References <6ac24546-6cc6-4a01-9fa6-3b52d64484e3@googlegroups.com> <mailman.125.1365150463.3114.python-list@python.org> <590d71e1-5f78-475e-a5bc-8210694a7616@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.202.1365275593.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 2013-04-05 09:39, John Ladasky wrote:
> On Friday, April 5, 2013 1:27:40 AM UTC-7, Chris Angelico wrote:
>> 1) Can you optimize your algorithms? Three days of processing is... a LOT.
>
> Neural network training.  Yes, it takes a long time.  Still, it's not the most tedious code I run.  I also do molecular-dynamics simulations with GROMACS, those runs can take over a week!
>
>> 2) Rewrite some key portions in C, possibly using Cython (as MRAB suggested).
>
> And as I replied to MRAB, my limiting code is within Numpy.  I've taken care to look for ways that I might have been using Numpy itself inefficiently (and I did find a problem once: fixing it tripled my execution speed).  But I would like to think that Numpy itself, since it is already a C extension, should be optimal.

Well, Psyco obviously wasn't optimizing numpy. I believe the suggestion is to 
identify the key parts of the code that Psyco was optimizing to get you the 20% 
performance increase and port those to Cython.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

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