[Tutor] improving speed using and recalling C functions
Gabriele Brambilla
gb.gabrielebrambilla at gmail.com
Thu Apr 10 17:58:30 CEST 2014
Hi,
I have a program that is reading near 600000 elements from a file.
For each element it performs 200 times a particular mathematical operation
(a numerical interpolation of a function).
Now these process takes near 8 hours.
Creating a C function and calling it from the code could improve the speed?
It could be useful that it contains both the mathematical operation and the
for loop or only the mathematical operation?
If it is a reasonable solution to try decreasing the computational time how
can I implement this C function?
Thanks
Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140410/242ca744/attachment.html>
More information about the Tutor
mailing list