aloof-angle-91616
01/12/2019, 7:32 AMWhen you have a lot of speedup code using the CPython C API and values need to be shared across different modules, pass around Python types that expose data as C structs and have the compiled code access those C structs instead of going through the CPython C API. By avoiding the Python C API for data access, you will be avoiding most of its overhead.i’m glad we started off with a standalone engine library using
cffi
rather than trying to hook into the interpreter itself, the idea of wrangling Other People’s APIs for high perf code is a tad annoying to think about