[Mono-osx] Fast .NET<-->objc bridge. How to contribute?

Jesse Jones jesjones at mindspring.com
Thu Oct 30 15:07:42 EDT 2008


On Oct 30, 2008, at 11:02 AM, Grishul Eugeny wrote:

>
> 2Geoff Norton: Are you still reading sources? What about replacing  
> Cocoa#
> with this one?
>
> Recently I added selectors caching support for generated proxies, so  
> library
> now was overwhelming =)
> See updated perftest:
>
> var instance = NSString.stringWithString_( "some string to test" );
> instance.stringByAppendingString_( "something" );
>
> ObjcMapper results:
> 00:00:00.2879690
> 00:00:00.2878390
> 00:00:00.2875700
>
> Cocoa# results:
> 00:00:05.1938330
> 00:00:05.2703830
> 00:00:05.4167230
>
> monobjc results:
> 00:00:05.2928810
> 00:00:05.2914460
> 00:00:05.2801190
>
> objc3-sharp results:
> 00:00:02.2013460
> 00:00:02.2027630
> 00:00:02.1879220

Impressive speed Grishul. I looked at optimizing call times in mobjc  
(which replaces objc3-sharp), by for example adding a fast path which  
bypasses a lot of the managed code, but the speed increases were  
negligible. So, as far as I can tell the slow down in mobjc is from  
libffi and return value marshaling.

   -- Jesse


More information about the Mono-osx mailing list