Function Call Frame & Argument Setup Tax

Beyond method resolution, each Python function call incurs overhead for creating a new execution frame and managing argument passing, including 'boxing' and 'unboxing' values. This setup cost is substantial, with an empty Python function call taking approximately 150ns.

Sources

Open the full topic