Re: Creating a PYD file

2010-08-23 Thread Stefan Behnel
Rony, 19.08.2010 21:41: The question actually is, is a PYD file created from C faster then a PYD file from Pyrex ? Most likely, yes. However, when comparing to Cython instead of Pyrex, the answer really depends on your code. Cython cannot be faster than the equivalent C code, simply because

Re: Creating a PYD file

2010-08-23 Thread Stefan Behnel
Thomas Jollans, 19.08.2010 20:47: On Thursday 19 August 2010, it occurred to Rony to exclaim: Is a PYD file created from Pyrex faster in execution then a PYD file created from python source ? How do you plan to create an extension module (*.so, *.pyd on Windows) from Python source then? You

Re: Creating a PYD file

2010-08-23 Thread Philipp Pagel
Rony wrote: > Is a PYD file created from Pyrex faster in execution then a PYD file > created from python source ? What do you mean? An African or European swallow? Of course it depends on your choice of algorithm, programmer ability.familarity with the respective langugage, ... cu Phili

Re: Creating a PYD file

2010-08-19 Thread Martin v. Loewis
> (Pseudo code) > > result = arg1 + arg2 > return result For this code, the manually-written version will most likely be faster than the Pyrex-generated one. This is, most likely, because the manually-written version will assume a specific data type for the arguments (e.g. int), which Pyrex will

Re: Creating a PYD file

2010-08-19 Thread Terry Reedy
On 8/19/2010 3:41 PM, Rony wrote: is a PYD file created from C faster then a PYD file from Pyrex ? Since a .pyd file from Pyrex is also from C, the question is ill-posed. It is equivalent to "Does the C code generated by Pyrex compile to faster or slower machine code than the C code generated

Re: Creating a PYD file

2010-08-19 Thread Rony
Sorry that was a typo... The question actually is, is a PYD file created from C faster then a PYD file from Pyrex ? I know it will depend on how it is written, but let's imagine a tiny example, like (Pseudo code) result = arg1 + arg2 return result Tia Rony On 19 août, 20:47, Thomas Jollans

Re: Creating a PYD file

2010-08-19 Thread Thomas Jollans
On Thursday 19 August 2010, it occurred to Rony to exclaim: > Is a PYD file created from Pyrex faster in execution then a PYD file > created from python source ? How do you plan to create an extension module (*.so, *.pyd on Windows) from Python source then? -- http://mail.python.org/mailman/list

Creating a PYD file

2010-08-19 Thread Rony
Is a PYD file created from Pyrex faster in execution then a PYD file created from python source ? Tia Rony -- http://mail.python.org/mailman/listinfo/python-list