API vs. ABI: CFFI's Measured Call Overhead Reduction

Benchmarks indicate CFFI's API mode can reduce the overhead of a C function call by approximately 30 nanoseconds compared to its ABI mode (e.g., ~90ns vs. ~120ns), though this difference may diminish for more complex or longer-running operations.

Sources

Open the full topic