[Python-ideas] discouraging direct use of the C-API
Stefan Krah
stefan at bytereef.org
Fri May 8 11:09:21 CEST 2015
Paul Moore <p.f.moore at ...> writes:
> > https://mail.python.org/pipermail/python-dev/2013-December/130772.html
> >
> >
> > CFFI is very nice (superb API), but not for high performance use cases.
>
> I'm guessing that benchmark used cffi in the "ABI level" dynamic form
> that matches ctypes. Did you try the cffi "API level" form that
> creates a C extension? I'd be curious as to where that falls in
> performance.
ffi.verify() is only about 10% faster both in pypy and cpython, so it
doesn't change much in the posted figures.
Stefan Krah
More information about the Python-ideas
mailing list