2 ms·
The CPython API is the main source of overhead in FFI. It is why using numpy to multiply lots of small matricies is so much slower than one large one. This has
by galangalalgol 3y ago
The CPython API is the main source of overhead in FFI. It is why using numpy to multiply lots of small matricies is so much slower than one large one. This has prompted people to support the simpler and faster HPy API.
https://docs.hpyproject.org/en/latest/overview.html https://docs.hpyproject.org/en/latest/overview.html