2 ms·
Yes, my experience with CPython is that ctypes is slower than writing (or generating, as is the case with Cython) the Python/C extension. However, one advantag
by eesmith 8y ago
Yes, my experience with CPython is that ctypes is slower than writing (or generating, as is the case with Cython) the Python/C extension.
However, one advantage with ctypes is that it can work with other Python implementations, like PyPy.