Extending Python: rewriting a single method in C

Terry Reedy tjreedy at udel.edu
Mon Mar 12 13:49:29 EST 2001


> "Jacek Generowicz" <jmg at ecs.soton.ac.uk> wrote in message
> news:g0wv9vxms0.fsf at scumbag.ecs.soton.ac.uk...
> > I have an object-oriented numerical code written in Python. It has
> > come to the stage where the speed of the code is seriously impeding
> > progress. Profiling reveals (surprise, surprise) that most of the time
> > is spent in only 2 methods.
> >
> > Is there any way of re-writing just these methods in C ?

Are you already using the Numerical Extensions?  They include many
functions rewrittin in C for speed.





More information about the Python-list mailing list