Overhead vs Pure Python
What is the best way to test the overhead of calling a function in python vs calling a Python function through PythonCall?
You can use BenchmarkTools in Julia and timeit in Python to do micro benchmarks. If the function takes more than a microsecond then the overhead of calling from PythonCall should be negligible.
This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days.
This issue has been closed because it has been stale for 7 days. You can re-open it if it is still relevant.