Hello,

How fast/slow is using ctypes to talk to a C lib, compared to doing it
directly form Cython?

While debugging an issue using ctypes, I found myself writing code
that was mixing the two methods... the Cython module was passing a
pointer to my Python code, which then uses ctypes functions to talk
the C lib, passing the pointer along the way, and it seems to work
fine... So, my question is, when I have the option to do some
interaction with the C lib in Cython or in ctypes, which should I go
with?

ctypes is more pythonic with its Structures concepts.. but is it
really slow? would I gain from doing it the harder way, in Cython?

Thanks a lot,
Mohamed.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to