[Mono-dev] slow mono_runtime_invoke

Thomas Grill gr at grrrr.org
Fri Mar 10 09:17:25 EST 2006


Hi all,
i'd like to use mono inside a realtime system, which means that i need 
to make the native->managed transition as cheap as possible.
Since mono_runtime_invoke is very slow, i'd like to ask whether there 
are strategies to speed this up.
In the API i saw the mono_compile_method function, which is obviously 
used by jit_invoke, but due to sparse documentation many things unclear 
for me.

When i compile a MonoMethod pointing to a method function without 
arguments, like in

class myclass
{
    void virtual myfun()
};

which arguments will the function pointer returned from 
mono_compile_method take then?
MonoObject *exception; funptr(this,NULL,&exception); 
??

Any pointers to understandable parts of the mono source welcome!

thanks,
Thomas

-- 
Thomas Grill
http://grrrr.org





More information about the Mono-devel-list mailing list