Extending Python: rewriting a single method in C

Jacek Generowicz jmg at ecs.soton.ac.uk
Mon Mar 12 12:13:51 CET 2001


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 ?

I would imagine that this sort of thing has been done/attempted many
times by the Scientific Python community, but I haven't managed to
find mcuh.

Thanks,

Jacek



More information about the Python-list mailing list