Hi Stefan,

On Fri, Feb 24, 2012 at 09:17, Stefan Behnel <stefan...@behnel.de> wrote:
> However much faster ctypes can be in PyPy than in CPython, you
> just can't beat the performance of a straight block of C code when the goal
> is to talk to C code.

That's wrong from a pypy point of view --- or at least not helpful.
Right now, if your stars are correctly aligned and all the ctypes
calls use the fast path, then pypy generates a block of assembler
containing the direct calls to C code.  While not strictly the same
performance as a good optimizing compiler, the difference should not
be measurable in this case.  Not to mention that Cython code linked as
a cpyext module for pypy is going to interface very slowly with the
rest of pypy.  If you need to exchange the gmp values between Python
and the gmp library, then Cython looses on pypy.

(Stefan, it seems like you are regularly using the pypy list to make
the promotion of Cython.  While I have nothing against Cython, your
knowledge about pypy appears to be superficial.  So may I please ask
you to stop?  Thank you.)


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to