Interop Performance Gotchas
Where the bridge costs you speed.
Interop Has a Cost
Calling Python from Mojo is powerful, but it is not free. Knowing the costs helps you keep your program fast. 🐢
The Bridge Tax
Every crossing into Python carries overhead, since Mojo must talk to the Python interpreter for each call.
All lessons in this course
- Using NumPy from Mojo
- Passing Mojo Data to Python
- Reading Python Objects Back
- Interop Performance Gotchas