Anyone got any details on the overhead of a native -> managed context switch in Mono? Namely the overhead caused by calling .NET methods/creating .NET objects using the C API.
The current API for invoking a managed method from C code has these kinds of overhead:
We're going to introduce a new API that does away with the overhead in the first and the last points above. In the mean time, unless you're doing millions of calls per second, these overheads are pretty small and almost always dwarfed by the actual managed method called doing real work.