Thanks for the psyco information, Serge. > 2) Rewrite the code to be vectorized (don't use psyco) Right now your > code *doesn't* get any speed benefit from numpy I do not understand this point. How to rewrite the code ? Do you mean in C ? Julien