[Pyrex] Re: Pyrex and Numarray

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Sep 21 02:59:12 CEST 2005


Nitin Madnani wrote:

> 2) Is this filling-in using the C functions going to be faster than  
> using the Pythonic way to create a numeric array
> and then filling it in, as Greg and the others suggested earlier?

That's going to depend on the size of the array. For small
arrays it may be noticeably faster to do it all in C. But
for large enough arrays, the time to fill it in will
dominate, so it won't matter much how it's created. The
actual value of "large enough" will need to be determined
by experiment.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+



More information about the Pyrex mailing list