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
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
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
> (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
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
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
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
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