▲ | almostgotcaught 4 days ago | |||||||
The call overhead of using ctypes vs nanobind/pybind is enormous https://news.ycombinator.com/item?id=31378277 Even if the number reported there is off, it's not far off because ctypes just calls out to libffi which is known to be the slowest way to do ffi. | ||||||||
▲ | nirw4nna 4 days ago | parent [-] | |||||||
Thanks for pointing this out! I'll definitely have to investigate other approaches. nanobind looks interesting but I don't need to expose complex C++ objects, I just need the 'fastest' way of calling into a C API. I guess the goto for this is CFFI? | ||||||||
|