[Tutor] improving speed using and recalling C functions

Gabriele Brambilla gb.gabrielebrambilla at gmail.com
Fri Apr 11 22:01:57 CEST 2014


Yes,
but I want to make a C extension to run faster a function from
scipy.interpolate (interp1d)

It woulldn't change anything?

thanks

Gabriele


2014-04-11 14:47 GMT-04:00 Alan Gauld <alan.gauld at btinternet.com>:

> 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
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140411/4be48275/attachment.html>


More information about the Tutor mailing list