Creating a PYD file

Martin v. Loewis martin at v.loewis.de
Thu Aug 19 23:53:16 CEST 2010


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

As a consequence, the manually-written version will be more
restricted than the Pyrex one, and most likely, that will be
acceptable in your application.

Theoretically speaking.

Regards,
Martin



More information about the Python-list mailing list