[Tutor] improving speed using and recalling C functions

Alan Gauld alan.gauld at btinternet.com
Fri Apr 11 20:47:24 CEST 2014


On 11/04/14 09:59, Peter Otten wrote:
> Gabriele Brambilla wrote:
>
>> Anyway I would like to try to speed it up using C functions
>...
> posted looks like it has great potential for speed-up by replacing the inner
> loops with numpy array operations.

And in case its not obvious much(most?) of numPy consists
of C functions. So by using NumPy you are usually using
C code not native Python.

That's what I alluded to in my first post on this thread:
there are other libraries who have trod this route before
and done the work for you.

HTH
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list